Parent

Methods

Class/Module Index [+]

Quicksearch

TypedArray::UnexpectedTypeException

The exception that is raised when an Unexpected Type is reached during validation

Attributes

expected[R]

Provide access to the types of objects expected and the class of the object received

received[R]

Provide access to the types of objects expected and the class of the object received

Public Class Methods

new(expected_one_of, received) click to toggle source
# File lib/typed-array.rb, line 46
def initialize expected_one_of, received
  @expected = expected_one_of
  @received = received
end

Public Instance Methods

to_s() click to toggle source
# 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.