Method: SOCMaker::Conf#encode_with
- Defined in:
- lib/soc_maker/conf.rb
#encode_with(coder) ⇒ Object
Encoder function (to yaml)
coder
-
An instance of the Psych::Coder to encode this class to a YAML file
129 130 131 132 133 134 |
# File 'lib/soc_maker/conf.rb', line 129 def encode_with( coder ) puts "ENCODE_WITH CALLED" init_error_if !coder.is_a?( Psych::Coder ), 'coder is not given as Psych::Coder' coder[ 'data' ] = @data end |