Class: MethodCallCount::CallableStub
- Inherits:
-
Object
- Object
- MethodCallCount::CallableStub
- Defined in:
- lib/method_call_count/callable_stub.rb
Instance Method Summary collapse
- #call(options = {}) ⇒ Object
- #called_with ⇒ Object
-
#initialize ⇒ CallableStub
constructor
A new instance of CallableStub.
Constructor Details
#initialize ⇒ CallableStub
Returns a new instance of CallableStub.
5 6 7 |
# File 'lib/method_call_count/callable_stub.rb', line 5 def initialize @called_with = {} end |
Instance Method Details
#call(options = {}) ⇒ Object
8 9 10 |
# File 'lib/method_call_count/callable_stub.rb', line 8 def call(={}) @called_with = end |
#called_with ⇒ Object
11 12 13 |
# File 'lib/method_call_count/callable_stub.rb', line 11 def called_with @called_with.dup end |