Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/keigo.rb
Instance Method Summary collapse
Instance Method Details
#keigo ⇒ Object
10 11 12 13 14 |
# File 'lib/keigo.rb', line 10 def keigo text = self $keigo_henkan.each_key {|key| text = text.sub(key, $keigo_henkan[key])} text end |
#sama ⇒ Object
6 7 8 |
# File 'lib/keigo.rb', line 6 def sama "#{self}様" end |