Class: EventedStub
- Extended by:
- Publisher
- Defined in:
- lib/gamebox/spec/helper.rb
Instance Method Summary collapse
-
#initialize(object) ⇒ EventedStub
constructor
A new instance of EventedStub.
- #method_missing(name, *args) ⇒ Object
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 |