Class: ParamsReady::Parameter::TupleParameterDefinition::StructMarshaller
- Inherits:
-
Object
- Object
- ParamsReady::Parameter::TupleParameterDefinition::StructMarshaller
- Defined in:
- lib/params_ready/parameter/tuple_parameter.rb
Instance Method Summary collapse
Instance Method Details
#marshal(fields, _format) ⇒ Object
102 103 104 105 106 |
# File 'lib/params_ready/parameter/tuple_parameter.rb', line 102 def marshal(fields, _format) fields.each_with_index.map do |field, index| [index.to_s, field] end.to_h end |