class ParamsReady::Parameter::TupleParameterDefinition::HashMarshaller

Public Instance Methods

marshal(fields, _format) click to toggle source
# 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