Module: EtoHelper

Included in:
Ruboty::Eto::Actions::Emoji, Ruboty::Eto::Actions::Name, Ruboty::Eto::Actions::Names
Defined in:
lib/ruboty/eto/actions/eto_helper.rb

Instance Method Summary collapse

Instance Method Details

#call_eto_method(method_name, *args) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/ruboty/eto/actions/eto_helper.rb', line 4

def call_eto_method(method_name, *args)
  if args.size == 0
    Eto.send(method_name)
  else
    Eto.send(method_name, args.first)
  end
end

#yearObject



12
13
14
# File 'lib/ruboty/eto/actions/eto_helper.rb', line 12

def year
  message[:year]
end