Class: Ruboty::Handlers::GoodNight
- Inherits:
-
Base
- Object
- Base
- Ruboty::Handlers::GoodNight
- Defined in:
- lib/ruboty/handlers/good_night.rb
Constant Summary collapse
- BRAIN_NAMESPACE =
'ruboty-goodnight'
Instance Method Summary collapse
- #greet(message) ⇒ Object
-
#initialize(*args) ⇒ GoodNight
constructor
A new instance of GoodNight.
Constructor Details
#initialize(*args) ⇒ GoodNight
Returns a new instance of GoodNight.
8 9 10 11 12 13 |
# File 'lib/ruboty/handlers/good_night.rb', line 8 def initialize(*args) super if room (room) end end |
Instance Method Details
#greet(message) ⇒ Object
15 16 17 18 |
# File 'lib/ruboty/handlers/good_night.rb', line 15 def greet() save() .reply('まだ寝ないよ!') end |