module YamlDb::Utils
Public Class Methods
chunk_records(records)
click to toggle source
# File lib/yaml_db.rb, line 26 def self.chunk_records(records) yaml = [ records ].to_yaml yaml.sub!(/---\s\n|---\n/, '') yaml.sub!('- - -', ' - -') yaml end