Class: Class

Inherits:
Object
  • Object
show all
Defined in:
lib/rschema.rb

Instance Method Summary collapse

Instance Method Details

#schema_walk(value, mapper) ⇒ Object



312
313
314
315
316
317
318
# File 'lib/rschema.rb', line 312

def schema_walk(value, mapper)
  if value.is_a?(self)
    value
  else
    RSchema::ErrorDetails.new(value, "is not a #{self.name}, is a #{value.class.name}")
  end
end