Exception: Numerics::TypeError

Inherits:
TypeError
  • Object
show all
Defined in:
lib/ruby/lambdas/numerics/type_error.rb

Instance Method Summary collapse

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