Class: EventedStub

Inherits:
Object show all
Extended by:
Publisher
Defined in:
lib/gamebox/spec/helper.rb

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ EventedStub

Returns a new instance of EventedStub.



204
205
206
# File 'lib/gamebox/spec/helper.rb', line 204

def initialize(object)
  @inner_stub = object
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



207
208
209
# File 'lib/gamebox/spec/helper.rb', line 207

def method_missing(name, *args)
  @inner_stub.send name, *args
end