Class: Migratrix::Loads::Yaml
Instance Attribute Summary
Attributes inherited from Load
Instance Method Summary collapse
Methods inherited from Load
Constructor Details
This class inherits a constructor from Migratrix::Loads::Load
Instance Method Details
#load(transformed_items) ⇒ Object
8 9 10 11 12 |
# File 'lib/migratrix/loads/yaml.rb', line 8 def load(transformed_items) File.open([:filename], 'w') do |file| file.puts transformed_items.to_yaml end end |