Sha256: cd565d06f2c070952bfc95965798849b9b9c503dec88a068732bff205c5df95c

Contents?: true

Size: 283 Bytes

Versions: 19

Compression:

Stored size: 283 Bytes

Contents

require 'yaml'

module Draftsman
  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

19 entries across 19 versions & 1 rubygems

Version Path
draftsman-0.7.2 lib/draftsman/serializers/yaml.rb
draftsman-0.7.1 lib/draftsman/serializers/yaml.rb
draftsman-0.7.0 lib/draftsman/serializers/yaml.rb
draftsman-0.6.0 lib/draftsman/serializers/yaml.rb
draftsman-0.5.1 lib/draftsman/serializers/yaml.rb
draftsman-0.5.0 lib/draftsman/serializers/yaml.rb
draftsman-0.4.0 lib/draftsman/serializers/yaml.rb
draftsman-0.3.7 lib/draftsman/serializers/yaml.rb
draftsman-0.3.6 lib/draftsman/serializers/yaml.rb
draftsman-0.3.5 lib/draftsman/serializers/yaml.rb
draftsman-0.3.4 lib/draftsman/serializers/yaml.rb
draftsman-0.3.3 lib/draftsman/serializers/yaml.rb
draftsman-0.3.2 lib/draftsman/serializers/yaml.rb
draftsman-0.3.1 lib/draftsman/serializers/yaml.rb
draftsman-0.3.0 lib/draftsman/serializers/yaml.rb
draftsman-0.2.1 lib/draftsman/serializers/yaml.rb
draftsman-0.2.0 lib/draftsman/serializers/yaml.rb
draftsman-0.1.1 lib/draftsman/serializers/yaml.rb
draftsman-0.1.0 lib/draftsman/serializers/yaml.rb