Sha256: 05de2a3d7dc4255da863f659c06d9ca36321ae89f22894dabeeeb38d57a0ccc2

Contents?: true

Size: 307 Bytes

Versions: 6

Compression:

Stored size: 307 Bytes

Contents

module Doggy
  module Serializer
    class Yaml
      # De-serialize a Hash from YAML string
      def self.load(string)
        ::YAML.load(string)
      end

      # Serialize a Hash to YAML string
      def self.dump(object, options = {})
        ::YAML.dump(object, options)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
doggy-0.2.2 lib/doggy/serializer/yaml.rb
doggy-0.2.0 lib/doggy/serializer/yaml.rb
doggy-0.1.3 lib/doggy/serializer/yaml.rb
doggy-0.1.2 lib/doggy/serializer/yaml.rb
doggy-0.1.1 lib/doggy/serializer/yaml.rb
doggy-0.1.0 lib/doggy/serializer/yaml.rb