Class: Class
- Inherits:
-
Object
- Object
- Class
- Defined in:
- lib/rschema.rb
Instance Method Summary collapse
Instance Method Details
#schema_walk(value, mapper) ⇒ Object
227 228 229 230 231 232 233 |
# File 'lib/rschema.rb', line 227 def schema_walk(value, mapper) if value.is_a?(self) value else RSchema::ErrorDetails.new("is not a #{self.name}, is a #{value.class.name}") end end |