Sha256: e365562d57d16463bcb72fa48f1bb9d1ba7637e604fdc153321e4299b99a2f95

Contents?: true

Size: 491 Bytes

Versions: 2

Compression:

Stored size: 491 Bytes

Contents

require 'rom/memory/dataset'

module ROM
  module YAML
    # YAML in-memory dataset used by YAML gateways
    #
    # @api public
    class Dataset < ROM::Memory::Dataset
      # Data-row transformation proc
      #
      # @api private
      def self.row_proc
        Transforms[:deep_symbolize_keys]
      end
    end


    # @api private
    class Transforms
      extend Transproc::Registry
      import Transproc::HashTransformations
      import Transproc::Recursion
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rom-yaml-3.0.0 lib/rom/yaml/dataset.rb
rom-yaml-2.0.0 lib/rom/yaml/dataset.rb