Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/keigo.rb

Instance Method Summary collapse

Instance Method Details

#keigoObject



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

#samaObject



6
7
8
# File 'lib/keigo.rb', line 6

def sama
  "#{self}"
end