Sha256: 9c473c9fb9f108e7aaa183f9f9c55116c4d5b46889bb7b1ee6b88c749544d0b7

Contents?: true

Size: 263 Bytes

Versions: 1

Compression:

Stored size: 263 Bytes

Contents

module DataMapper
  module Support
    module Serialization
      
      def to_yaml
        document = {}
        attributes.each_pair { |k,v| document[k.to_s] = v }
        document.to_yaml
      end
      
    end
  end # module Support
end # module DataMapper

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datamapper-0.2.0 lib/data_mapper/support/serialization.rb