lib/wire/commands/init_command.rb
# exports an element part of the model to a single file
# in target_dir, as yaml.
exports an element part of the model to a single file
in target_dir, as yaml.
exports an element part of the model to a single file in target_dir as yaml .
def export_element_file(element_sym, element_data, target_dir)
      filename = File.join(target_dir, "#{element_sym}.yaml")
      open(filename, 'w') do |out_file|
        out_file.puts(element_data.to_yaml)
      end
    end
def export_element_file ( element_sym , element_data , target_dir ) filename = File . join ( target_dir , "#{element_sym}.yaml" ) open ( filename , 'w' ) do | out_file | out_file . puts ( element_data . to_yaml ) end end
exports an element part of the model to a single file
in target_dir, as yaml.
exports an element part of the model to a single file in target_dir as yaml .
element_sym
<not_specific>
element_data
<not_specific>
target_dir
<not_specific>