Module: YDD::YamlDB::Utils

Defined in:
lib/ydd/yaml_db.rb

Class Method Summary collapse

Class Method Details

.chunk_records(records) ⇒ Object



19
20
21
22
23
24
# File 'lib/ydd/yaml_db.rb', line 19

def self.chunk_records(records)
  yaml = [ records ].to_yaml
  yaml.sub!("--- \n", "")
  yaml.sub!('- - -', '  - -')
  yaml
end