class TTY::Config::Marshallers::TOMLMarshaller

Responsible for marshalling content from and into TOML format

@api public

Public Instance Methods

marshal(data) click to toggle source
# File lib/tty/config/marshallers/toml_marshaller.rb, line 18
def marshal(data)
  TOML::Generator.new(data).body
end
unmarshal(content) click to toggle source
# File lib/tty/config/marshallers/toml_marshaller.rb, line 22
def unmarshal(content)
  TOML::Parser.new(content).parsed
end