Exception: Numerics::TypeError
- Inherits:
-
TypeError
- Object
- TypeError
- Numerics::TypeError
- Defined in:
- lib/ruby/lambdas/numerics/type_error.rb
Instance Method Summary collapse
-
#initialize(data) ⇒ TypeError
constructor
A new instance of TypeError.
Constructor Details
#initialize(data) ⇒ TypeError
Returns a new instance of TypeError.
3 4 5 |
# File 'lib/ruby/lambdas/numerics/type_error.rb', line 3 def initialize(data) super("#{data.inspect} must be Numeric") end |