Module: Romaji::StringExtension
- Defined in:
- lib/romaji/string_extension.rb
Instance Method Summary collapse
- #kana ⇒ Object
- #kana! ⇒ Object
- #normalize ⇒ Object
- #normalize! ⇒ Object
- #romaji ⇒ Object
- #romaji! ⇒ Object
Instance Method Details
#kana ⇒ Object
13 14 15 |
# File 'lib/romaji/string_extension.rb', line 13 def kana Romaji.romaji2kana(self.normalize) end |
#kana! ⇒ Object
17 18 19 |
# File 'lib/romaji/string_extension.rb', line 17 def kana! self.replace(self.kana) end |
#normalize ⇒ Object
5 6 7 |
# File 'lib/romaji/string_extension.rb', line 5 def normalize Romaji.normalize(self) end |
#normalize! ⇒ Object
9 10 11 |
# File 'lib/romaji/string_extension.rb', line 9 def normalize! self.replace(self.normalize) end |
#romaji ⇒ Object
21 22 23 |
# File 'lib/romaji/string_extension.rb', line 21 def romaji Romaji.kana2romaji(self.normalize) end |
#romaji! ⇒ Object
25 26 27 |
# File 'lib/romaji/string_extension.rb', line 25 def romaji! self.replace(self.romaji) end |