Module: KanjiMaster::StringExtension

Defined in:
lib/kanji_master/string_extension.rb

Instance Method Summary collapse

Instance Method Details

#alphabet?Boolean

Returns:

  • (Boolean)


15
16
17
18
# File 'lib/kanji_master/string_extension.rb', line 15

def alphabet?
  reader = Reader.new
  reader.alphabet?(self)
end

#hiraObject



10
11
12
13
# File 'lib/kanji_master/string_extension.rb', line 10

def hira
  converter = Converter.new
  converter.hira(self)
end

#hiraganaObject



9
# File 'lib/kanji_master/string_extension.rb', line 9

def hiragana; hira end

#jp_zip_code?Boolean

Returns:

  • (Boolean)


30
# File 'lib/kanji_master/string_extension.rb', line 30

def jp_zip_code?; jp_zipcode? end

#jp_zipcode?Boolean

Returns:

  • (Boolean)


31
32
33
34
# File 'lib/kanji_master/string_extension.rb', line 31

def jp_zipcode?
  reader = Reader.new
  reader.zipcode?(self)
end

#kanaObject



4
5
6
7
# File 'lib/kanji_master/string_extension.rb', line 4

def kana
  converter = Converter.new
  converter.kana(self)
end

#kanji?Boolean

Returns:

  • (Boolean)


25
26
27
28
# File 'lib/kanji_master/string_extension.rb', line 25

def kanji?
  reader = Reader.new
  reader.kanji?(self)
end

#katakanaObject



3
# File 'lib/kanji_master/string_extension.rb', line 3

def katakana; kana end

#maybe_kanji?Boolean

Returns:

  • (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