Exception: NothingToMimic

Inherits:
Exception
  • Object
show all
Defined in:
lib/nothing_to_mimic.rb

Instance Method Summary collapse

Constructor Details

#initializeNothingToMimic

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