git.schokokeks.org
Repositories
Help
Report an Issue
fs-workbench.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
c871fa6
Branches
Tags
master
fs-workbench.git
source
model
wordfragment.js
foo
Fenris Wolf
commited
c871fa6
at 2017-04-17 12:01:43
wordfragment.js
Blame
History
Raw
/** * @author fenris */ class Wordfragment { /** */ constructor(language, representation, pronunciation) { this.language = language; this.representation = representation; this.pronunciation = pronunciation; } /** */ toString() { let parts = []; if (this.language != null) parts.push("[" + this.language + "]"); if (this.representation != null) parts.push("\"" + this.representation + "\""); if (this.pronunciation != null) parts.push("(" + this.pronunciation + ")"); return parts.join(" "); } }