module Gimchi::Char::Component

Three components of Gimchi::Char are extended to support vowel? and consonant? method.

Attributes

kor[RW]

@return [Korean] Hosting Korean instance

Public Instance Methods

consonant?() click to toggle source

Is this component a consonant?

# File lib/gimchi/char.rb, line 106
def consonant?
  self != 'ㅇ' && kor.chosung?(self)
end
vowel?() click to toggle source

Is this component a vowel?

# File lib/gimchi/char.rb, line 101
def vowel?
  kor.jungsung? self
end