Class: Phonology::Affricate
- Inherits:
-
Object
- Object
- Phonology::Affricate
- Includes:
- SoundBase
- Defined in:
- lib/phonology/sound.rb
Overview
A sound which begins plosive and finishes fricative.
Instance Attribute Summary collapse
-
#onset ⇒ Object
readonly
Returns the value of attribute onset.
-
#release ⇒ Object
readonly
Returns the value of attribute release.
Attributes included from SoundBase
#hints, #orthography, #syllable
Instance Method Summary collapse
- #codepoints ⇒ Object
- #exists? ⇒ Boolean
- #features ⇒ Object
-
#initialize(onset, release) ⇒ Affricate
constructor
A new instance of Affricate.
Methods included from SoundBase
#backness, #coarticulated?, #height, #hint, #manner, #place, #place_groups, #sonority, #symbol
Constructor Details
#initialize(onset, release) ⇒ Affricate
Returns a new instance of Affricate.
171 172 173 174 |
# File 'lib/phonology/sound.rb', line 171 def initialize(onset, release) self.onset = get_sound(onset) self.release = get_sound(release) end |
Instance Attribute Details
#onset ⇒ Object
Returns the value of attribute onset.
168 169 170 |
# File 'lib/phonology/sound.rb', line 168 def onset @onset end |
#release ⇒ Object
Returns the value of attribute release.
168 169 170 |
# File 'lib/phonology/sound.rb', line 168 def release @release end |
Instance Method Details
#codepoints ⇒ Object
184 185 186 |
# File 'lib/phonology/sound.rb', line 184 def codepoints [onset.codepoints, Features::DIACRITICS[:affricate], release.codepoints].flatten end |
#exists? ⇒ Boolean
176 177 178 |
# File 'lib/phonology/sound.rb', line 176 def exists? onset.exists? && release.exists? end |
#features ⇒ Object
180 181 182 |
# File 'lib/phonology/sound.rb', line 180 def features onset.features + release.features end |