Class: Phonology::Affricate

Inherits:
Object
  • Object
show all
Includes:
SoundBase
Defined in:
lib/phonology/sound.rb

Overview

A sound which begins plosive and finishes fricative.

Instance Attribute Summary collapse

Attributes included from SoundBase

#hints, #orthography, #syllable

Instance Method Summary collapse

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

#onsetObject

Returns the value of attribute onset.



168
169
170
# File 'lib/phonology/sound.rb', line 168

def onset
  @onset
end

#releaseObject

Returns the value of attribute release.



168
169
170
# File 'lib/phonology/sound.rb', line 168

def release
  @release
end

Instance Method Details

#codepointsObject



184
185
186
# File 'lib/phonology/sound.rb', line 184

def codepoints
  [onset.codepoints, Features::DIACRITICS[:affricate], release.codepoints].flatten
end

#exists?Boolean

Returns:

  • (Boolean)


176
177
178
# File 'lib/phonology/sound.rb', line 176

def exists?
  onset.exists? && release.exists?
end

#featuresObject



180
181
182
# File 'lib/phonology/sound.rb', line 180

def features
  onset.features + release.features
end