Module: ToSep
- Included in:
- String
- Defined in:
- lib/to_sep.rb,
lib/to_sep/version.rb
Constant Summary collapse
- VERSION =
"0.0.1"
Instance Method Summary collapse
Instance Method Details
#korean? ⇒ Boolean
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/to_sep.rb', line 9 def korean? if (self.match(/[ㄱ-힇]/)) if self.match(/[ㄱ-ㅎ]/) or self.match(/[ㅏ-ㅣ]/) false else true end else false end end |
#to_sep ⇒ Object
21 22 23 |
# File 'lib/to_sep.rb', line 21 def to_sep KoreanSeparator.split(self) end |
#to_unicode ⇒ Object
5 6 7 |
# File 'lib/to_sep.rb', line 5 def to_unicode self.unpack("U*").first end |