module SOCMaker::YAML_EXT

small module to extend classes, which need to be written as yaml output

Attributes

src_dir[RW]

we remember always, were we've loaded a yaml file

Public Instance Methods

save_yaml( args ) click to toggle source
# File lib/soc_maker.rb, line 252
def save_yaml( args )
  path =  args.size==0 ? @spec_path : args.first
  File.open( path, 'w') {|f| f.write SOCMaker::YPP.from_yaml( YAML.dump( self ) ) } 
end