class Otoroshi::Collection::TypeError
Manages errors raised when at least one element of the collection 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
":numbers contains elements that are not instances of Integer"
Calls superclass method
# File lib/otoroshi/exceptions.rb, line 60 def initialize(property, type) super ":#{property} contains elements that are not instances of #{type}" end