Class: SillyMonkey

Inherits:
Object
  • Object
show all
Includes:
InitializerEnhancer
Defined in:
lib/celluloid-io-pg-listener/examples/double_super_example.rb

Direct Known Subclasses

HappyMonkey

Instance Method Summary collapse

Constructor Details

#initializeSillyMonkey

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

Raises:

  • (RuntimeError)


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