class TTY::Config::Marshallers::JSONMarshaller

Responsible for marshalling content from and into JSON format

@api public

Public Instance Methods

marshal(object) click to toggle source
# File lib/tty/config/marshallers/json_marshaller.rb, line 18
def marshal(object)
  JSON.pretty_generate(object)
end
unmarshal(content) click to toggle source
# File lib/tty/config/marshallers/json_marshaller.rb, line 22
def unmarshal(content)
  JSON.parse(content)
end