Class: Yanagi::Mora

Inherits:
Struct
  • Object
show all
Defined in:
lib/yanagi/mora.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#kanaObject

Returns the value of attribute kana

Returns:

  • (Object)

    the current value of kana



7
8
9
# File 'lib/yanagi/mora.rb', line 7

def kana
  @kana
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



7
8
9
# File 'lib/yanagi/mora.rb', line 7

def kind
  @kind
end

#nucleusObject

Returns the value of attribute nucleus

Returns:

  • (Object)

    the current value of nucleus



7
8
9
# File 'lib/yanagi/mora.rb', line 7

def nucleus
  @nucleus
end

#onsetObject

Returns the value of attribute onset

Returns:

  • (Object)

    the current value of onset



7
8
9
# File 'lib/yanagi/mora.rb', line 7

def onset
  @onset
end

Instance Method Details

#chouonpu?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/yanagi/mora.rb', line 12

def chouonpu?
  kind == :chouonpu
end

#moraic_n?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/yanagi/mora.rb', line 16

def moraic_n?
  kind == :moraic_n
end

#passthrough?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/yanagi/mora.rb', line 24

def passthrough?
  kind == :passthrough
end

#sokuon?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/yanagi/mora.rb', line 8

def sokuon?
  kind == :sokuon
end

#syllable?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/yanagi/mora.rb', line 20

def syllable?
  kind == :syllable
end