Class: SillyMonkey
- Inherits:
-
Object
- Object
- SillyMonkey
- Includes:
- InitializerEnhancer
- Defined in:
- lib/celluloid-io-pg-listener/examples/double_super_example.rb
Direct Known Subclasses
Instance Method Summary collapse
- #eat_thing(thing) ⇒ Object
-
#initialize ⇒ SillyMonkey
constructor
A new instance of SillyMonkey.
Constructor Details
#initialize ⇒ SillyMonkey
Returns a new instance of SillyMonkey.
17 18 19 |
# File 'lib/celluloid-io-pg-listener/examples/double_super_example.rb', line 17 def initialize puts "LOL Nothing happened." end |
Instance Method Details
#eat_thing(thing) ⇒ Object
21 22 23 |
# File 'lib/celluloid-io-pg-listener/examples/double_super_example.rb', line 21 def eat_thing(thing) raise RuntimeError, "I ate a #{thing}" end |