Class: Impersonator::Double
- Inherits:
-
Object
- Object
- Impersonator::Double
- Defined in:
- lib/impersonator/double.rb
Overview
A simple double implementation. It will generate empty stubs for the passed list of methods
Instance Method Summary collapse
-
#initialize(*methods) ⇒ Double
constructor
A new instance of Double.
Constructor Details
#initialize(*methods) ⇒ Double
Returns a new instance of Double.
5 6 7 |
# File 'lib/impersonator/double.rb', line 5 def initialize(*methods) define_methods(methods) end |