Module: Mandy::IO::OutputFormatting

Included in:
Reducers::Base
Defined in:
lib/mandy/support/formatting.rb

Instance Method Summary collapse

Instance Method Details

#output_serialize_key(key) ⇒ Object



16
17
18
19
# File 'lib/mandy/support/formatting.rb', line 16

def output_serialize_key(key)
  return key if output_format && output_format == :plain
  serialize_key(key)
end

#output_serialize_value(value) ⇒ Object



21
22
23
24
# File 'lib/mandy/support/formatting.rb', line 21

def output_serialize_value(value)
  return value if output_format && output_format == :plain
  serialize_value(value)
end