Sha256: c8f5e4db873b2bc4737b4900bf52066a7024fe525c00e04773b773df625aa185

Contents?: true

Size: 288 Bytes

Versions: 5

Compression:

Stored size: 288 Bytes

Contents

require 'yaml'

module PaperTrail
  module Serializers
    module YAML
      extend self # makes all instance methods become module methods as well

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
paper_trail-3.0.2 lib/paper_trail/serializers/yaml.rb
paper_trail-3.0.1 lib/paper_trail/serializers/yaml.rb
paper_trail-3.0.0 lib/paper_trail/serializers/yaml.rb
paper_trail-3.0.0.rc2 lib/paper_trail/serializers/yaml.rb
paper_trail-3.0.0.rc1 lib/paper_trail/serializers/yaml.rb