Method: SOCMaker::HDLFile#encode_with
- Defined in:
- lib/soc_maker/hdl_file.rb
#encode_with(coder) ⇒ Object
Encoder method (to yaml)
coder-
An instance of the Psych::Coder to encode this class to a YAML file
90 91 92 93 94 95 |
# File 'lib/soc_maker/hdl_file.rb', line 90 def encode_with( coder ) init_error_if !coder.is_a?( Psych::Coder ), 'coder is not given as Psych::Coder' %w[ path use_syn use_sys_sim use_mod_sim type ]. each { |v| coder[ v ] = instance_variable_get "@#{v}" } end |