Class: TTY::Config::Marshallers::JavaPropsMarshaller

Inherits:
Object
  • Object
show all
Includes:
TTY::Config::Marshaller
Defined in:
lib/tty/config/marshallers/java_props_marshaller.rb

Overview

Responsible for marshalling content from and into Java properties format

Instance Method Summary collapse

Methods included from TTY::Config::Marshaller

included

Instance Method Details

#marshal(object) ⇒ Object



18
19
20
# File 'lib/tty/config/marshallers/java_props_marshaller.rb', line 18

def marshal(object)
  JavaProperties.generate(object)
end

#unmarshal(content) ⇒ Object



22
23
24
# File 'lib/tty/config/marshallers/java_props_marshaller.rb', line 22

def unmarshal(content)
  JavaProperties.parse(content)
end