Sha256: 79d4f76d684ee5a2a408c71ff01e2bf8c7818618e138b5da3c11ed6da14d1830

Contents?: true

Size: 235 Bytes

Versions: 2

Compression:

Stored size: 235 Bytes

Contents

require 'yaml'

module Metastore
  module Storage
    class YAML < Base

      private

        def read
          ::YAML.load(file.read)
        end

        def to_write(values)
          values.to_yaml
        end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
metastore-0.4.0 lib/metastore/storage/yaml.rb
metastore-0.3.0 lib/metastore/storage/yaml.rb