Class: Ruboty::TrustMe::Actions::Trust
- Inherits:
-
Actions::Base
- Object
- Actions::Base
- Ruboty::TrustMe::Actions::Trust
- Defined in:
- lib/ruboty/trust_me/actions/trust.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/ruboty/trust_me/actions/trust.rb', line 5 def call if [:name] .robot.trusted_names << [:name] .reply("I trust #{[:name]}.") else .robot.trusted_names << .from_name .reply('I trust you.') end end |