Exception: Beefcake::Message::WrongTypeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/beefcake.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, exp, got) ⇒ WrongTypeError

Returns a new instance of WrongTypeError.



7
8
9
# File 'lib/beefcake.rb', line 7

def initialize(name, exp, got)
  super("Wrong type `#{got}` given for (#{name}).  Expected #{exp}")
end