Class: CodyRobbins::Syllabify::Syllable
- Inherits:
-
Object
- Object
- CodyRobbins::Syllabify::Syllable
- Defined in:
- lib/cody_robbins/syllabify/syllable.rb
Instance Attribute Summary collapse
-
#coda ⇒ Object
readonly
The coda (κ) of the syllable.
-
#nucleus ⇒ Object
readonly
The nucleus (ν) of the syllable.
-
#onset ⇒ Object
readonly
The onset (ω) of the syllable.
-
#stress ⇒ Object
readonly
Any stress marks associated with the syllable as a whole.
Instance Method Summary collapse
-
#to_s ⇒ String
Joins the stress, onset, nucleus, and coda to form a single string representation of the syllable.
Instance Attribute Details
#coda ⇒ Object (readonly)
The coda (κ) of the syllable.
16 17 18 |
# File 'lib/cody_robbins/syllabify/syllable.rb', line 16 def coda @coda end |
#nucleus ⇒ Object (readonly)
The nucleus (ν) of the syllable.
13 14 15 |
# File 'lib/cody_robbins/syllabify/syllable.rb', line 13 def nucleus @nucleus end |
#onset ⇒ Object (readonly)
The onset (ω) of the syllable.
10 11 12 |
# File 'lib/cody_robbins/syllabify/syllable.rb', line 10 def onset @onset end |
#stress ⇒ Object (readonly)
Any stress marks associated with the syllable as a whole.
7 8 9 |
# File 'lib/cody_robbins/syllabify/syllable.rb', line 7 def stress @stress end |
Instance Method Details
#to_s ⇒ String
Joins the stress, onset, nucleus, and coda to form a single string representation of the syllable.
32 33 34 |
# File 'lib/cody_robbins/syllabify/syllable.rb', line 32 def to_s join(stress, onset, nucleus, coda) end |