class Otoroshi::TypeError
Manages errors raised when value is not an instance of the expected class
Public Class Methods
new(property, type)
click to toggle source
@param property [Symbol] name of the property @param type [Class] class to match @example
":number is not an instance of Integer"
Calls superclass method
# File lib/otoroshi/exceptions.rb, line 14 def initialize(property, type) super ":#{property} is not an instance of #{type}" end