Exception: NothingToMimic
- Inherits:
-
Exception
- Object
- Exception
- NothingToMimic
- Defined in:
- lib/nothing_to_mimic.rb
Instance Method Summary collapse
-
#initialize ⇒ NothingToMimic
constructor
A new instance of NothingToMimic.
Constructor Details
#initialize ⇒ NothingToMimic
Returns a new instance of NothingToMimic.
2 3 4 5 6 7 8 |
# File 'lib/nothing_to_mimic.rb', line 2 def initialize super <<MESSAGE You aren't using Mimic correctly. Call Mimic.make_a_mimic_of(to_mimic, subject) passing the object to mimic as to_mimic and the target of the mimic invocation as subject. Shazaaam! MESSAGE end |