Exception
The exception that is raised when an Unexpected Type is reached during validation
Provide access to the types of objects expected and the class of the object received
# File lib/typed-array.rb, line 46 def initialize expected_one_of, received @expected = expected_one_of @received = received end
# File lib/typed-array.rb, line 51 def to_s %{Expected one of #{@expected.inspect} but received a(n) #{@received}} end
[Validate]
Generated with the Darkfish Rdoc Generator 2.