Class: TTY::Config::Marshallers::TOMLMarshaller
- Inherits:
-
Object
- Object
- TTY::Config::Marshallers::TOMLMarshaller
- Includes:
- TTY::Config::Marshaller
- Defined in:
- lib/tty/config/marshallers/toml_marshaller.rb
Instance Method Summary collapse
Methods included from TTY::Config::Marshaller
Instance Method Details
#marshal(data) ⇒ Object
15 16 17 |
# File 'lib/tty/config/marshallers/toml_marshaller.rb', line 15 def marshal(data) TOML::Generator.new(data).body end |
#unmarshal(content) ⇒ Object
19 20 21 |
# File 'lib/tty/config/marshallers/toml_marshaller.rb', line 19 def unmarshal(content) TOML::Parser.new(content).parsed end |