Class: RSchema::MaybeSchema
- Inherits:
-
Struct
- Object
- Struct
- RSchema::MaybeSchema
- Defined in:
- lib/rschema.rb
Instance Attribute Summary collapse
-
#subschema ⇒ Object
Returns the value of attribute subschema.
Instance Method Summary collapse
Instance Attribute Details
#subschema ⇒ Object
Returns the value of attribute subschema
201 202 203 |
# File 'lib/rschema.rb', line 201 def subschema @subschema end |
Instance Method Details
#schema_walk(value, mapper) ⇒ Object
202 203 204 205 206 207 208 209 |
# File 'lib/rschema.rb', line 202 def schema_walk(value, mapper) if value.nil? value else subvalue_walked, error = RSchema.walk(subschema, value, mapper) error || subvalue_walked end end |