Class: ParamsReady::Parameter::TupleParameterDefinition::StringMarshaller

Inherits:
Object
  • Object
show all
Defined in:
lib/params_ready/parameter/tuple_parameter.rb

Instance Method Summary collapse

Constructor Details

#initialize(separator:) ⇒ StringMarshaller

Returns a new instance of StringMarshaller.



92
93
94
# File 'lib/params_ready/parameter/tuple_parameter.rb', line 92

def initialize(separator:)
  @separator = separator
end

Instance Method Details

#marshal(fields, _format) ⇒ Object



96
97
98
# File 'lib/params_ready/parameter/tuple_parameter.rb', line 96

def marshal(fields, _format)
  fields.join(@separator)
end