class Yarrow::Schema::Types::CastError

Public Class Methods

instance_of(t, u) click to toggle source
# File lib/yarrow/schema/types.rb, line 5
def self.instance_of(t, u)
  new("#{t} is not an instance of #{u}")
end
kind_of(t, u) click to toggle source
# File lib/yarrow/schema/types.rb, line 9
def self.kind_of(t, u)
  new("#{t} is not a subclass of #{u}")
end
respond_to_all(t, m) click to toggle source
# File lib/yarrow/schema/types.rb, line 17
def self.respond_to_all(t, m)
  new("#{t} does not implement #{m}")
end
respond_to_any(t, m) click to toggle source
# File lib/yarrow/schema/types.rb, line 13
def self.respond_to_any(t, m)
  new("#{t} does not implement any of #{m}")
end
union_member(t, s) click to toggle source
# File lib/yarrow/schema/types.rb, line 21
def self.union_member(t, s)
  new("#{t} is not a member of union")
end