Method: Schemacop::V3::AllOfNode#cast
- Defined in:
- lib/schemacop/v3/all_of_node.rb
#cast(value) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/schemacop/v3/all_of_node.rb', line 22 def cast(value) items = matches(value) return value unless items casted_value = value.dup items.each { |i| casted_value = i.cast(casted_value) } return casted_value end |