class TTY::Config::Marshallers::INIMarshaller
Responsible for marshalling content from and into INI format
@api public
Public Instance Methods
marshal(object)
click to toggle source
# File lib/tty/config/marshallers/ini_marshaller.rb, line 19 def marshal(object) TTY::Config::Generator.generate(object) end
unmarshal(content)
click to toggle source
# File lib/tty/config/marshallers/ini_marshaller.rb, line 23 def unmarshal(content) ini = IniFile.new(content: content).to_h global = ini.delete("global") ini.merge!(global) end