Class: Yanagi::Mora
- Inherits:
-
Struct
- Object
- Struct
- Yanagi::Mora
- Defined in:
- lib/yanagi/mora.rb
Instance Attribute Summary collapse
-
#kana ⇒ Object
Returns the value of attribute kana.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#nucleus ⇒ Object
Returns the value of attribute nucleus.
-
#onset ⇒ Object
Returns the value of attribute onset.
Instance Method Summary collapse
- #chouonpu? ⇒ Boolean
- #moraic_n? ⇒ Boolean
- #passthrough? ⇒ Boolean
- #sokuon? ⇒ Boolean
- #syllable? ⇒ Boolean
Instance Attribute Details
#kana ⇒ Object
Returns the value of attribute kana
7 8 9 |
# File 'lib/yanagi/mora.rb', line 7 def kana @kana end |
#kind ⇒ Object
Returns the value of attribute kind
7 8 9 |
# File 'lib/yanagi/mora.rb', line 7 def kind @kind end |
#nucleus ⇒ Object
Returns the value of attribute nucleus
7 8 9 |
# File 'lib/yanagi/mora.rb', line 7 def nucleus @nucleus end |
#onset ⇒ Object
Returns the value of attribute onset
7 8 9 |
# File 'lib/yanagi/mora.rb', line 7 def onset @onset end |
Instance Method Details
#chouonpu? ⇒ Boolean
12 13 14 |
# File 'lib/yanagi/mora.rb', line 12 def chouonpu? kind == :chouonpu end |
#moraic_n? ⇒ Boolean
16 17 18 |
# File 'lib/yanagi/mora.rb', line 16 def moraic_n? kind == :moraic_n end |
#passthrough? ⇒ Boolean
24 25 26 |
# File 'lib/yanagi/mora.rb', line 24 def passthrough? kind == :passthrough end |
#sokuon? ⇒ Boolean
8 9 10 |
# File 'lib/yanagi/mora.rb', line 8 def sokuon? kind == :sokuon end |
#syllable? ⇒ Boolean
20 21 22 |
# File 'lib/yanagi/mora.rb', line 20 def syllable? kind == :syllable end |