Class: ParamsReady::Parameter::TupleParameterDefinition::StringMarshaller
- Inherits:
-
Object
- Object
- ParamsReady::Parameter::TupleParameterDefinition::StringMarshaller
- Defined in:
- lib/params_ready/parameter/tuple_parameter.rb
Instance Method Summary collapse
-
#initialize(separator:) ⇒ StringMarshaller
constructor
A new instance of StringMarshaller.
- #marshal(fields, _format) ⇒ Object
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 |