Class: MassiveRecord::ORM::Coders::YAML

Inherits:
Object
  • Object
show all
Defined in:
lib/massive_record/orm/coders/yaml.rb

Instance Method Summary collapse

Instance Method Details

#dump(object) ⇒ Object



5
6
7
# File 'lib/massive_record/orm/coders/yaml.rb', line 5

def dump(object)
  ::YAML.dump(object)
end

#load(yaml) ⇒ Object



9
10
11
# File 'lib/massive_record/orm/coders/yaml.rb', line 9

def load(yaml)
  ::YAML.load(yaml)
end