Class: Ruboty::Handlers::Romaji

Inherits:
Base
  • Object
show all
Defined in:
lib/ruboty/handlers/romaji.rb

Instance Method Summary collapse

Instance Method Details

#to_hepburn(message) ⇒ Object



12
13
14
# File 'lib/ruboty/handlers/romaji.rb', line 12

def to_hepburn(message)
  message.reply(message[:keyword].to_roma.to_hepburn)
end

#to_kunrei(message) ⇒ Object



8
9
10
# File 'lib/ruboty/handlers/romaji.rb', line 8

def to_kunrei(message)
  message.reply(message[:keyword].to_roma.to_kunrei)
end