Class: Class
- Inherits:
-
Object
- Object
- Class
- Defined in:
- lib/rschema.rb
Instance Method Summary collapse
Instance Method Details
#schema_walk(value, mapper) ⇒ Object
242 243 244 245 246 247 248 |
# File 'lib/rschema.rb', line 242 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 |