Exception: Beefcake::Message::WrongTypeError
- Inherits:
-
StandardError
- Object
- StandardError
- Beefcake::Message::WrongTypeError
- Defined in:
- lib/beefcake.rb
Instance Method Summary collapse
-
#initialize(name, exp, got) ⇒ WrongTypeError
constructor
A new instance of WrongTypeError.
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 |