Module: KanjiMaster::StringExtension
- Defined in:
- lib/kanji_master/string_extension.rb
Instance Method Summary collapse
- #alphabet? ⇒ Boolean
- #hira ⇒ Object
- #hiragana ⇒ Object
- #jp_zip_code? ⇒ Boolean
- #jp_zipcode? ⇒ Boolean
- #kana ⇒ Object
- #kanji? ⇒ Boolean
- #katakana ⇒ Object
- #maybe_kanji? ⇒ Boolean
Instance Method Details
#alphabet? ⇒ Boolean
15 16 17 18 |
# File 'lib/kanji_master/string_extension.rb', line 15 def alphabet? reader = Reader.new reader.alphabet?(self) end |
#hira ⇒ Object
10 11 12 13 |
# File 'lib/kanji_master/string_extension.rb', line 10 def hira converter = Converter.new converter.hira(self) end |
#hiragana ⇒ Object
9 |
# File 'lib/kanji_master/string_extension.rb', line 9 def hiragana; hira end |
#jp_zip_code? ⇒ Boolean
30 |
# File 'lib/kanji_master/string_extension.rb', line 30 def jp_zip_code?; jp_zipcode? end |
#jp_zipcode? ⇒ Boolean
31 32 33 34 |
# File 'lib/kanji_master/string_extension.rb', line 31 def jp_zipcode? reader = Reader.new reader.zipcode?(self) end |
#kana ⇒ Object
4 5 6 7 |
# File 'lib/kanji_master/string_extension.rb', line 4 def kana converter = Converter.new converter.kana(self) end |
#kanji? ⇒ Boolean
25 26 27 28 |
# File 'lib/kanji_master/string_extension.rb', line 25 def kanji? reader = Reader.new reader.kanji?(self) end |
#katakana ⇒ Object
3 |
# File 'lib/kanji_master/string_extension.rb', line 3 def katakana; kana end |
#maybe_kanji? ⇒ Boolean
20 21 22 23 |
# File 'lib/kanji_master/string_extension.rb', line 20 def maybe_kanji? reader = Reader.new reader.maybe_kanji?(self) end |