public
Rubygem
Description: DataMapper - Core
Homepage: http://datamapper.org
Clone URL: git://github.com/sam/dm-core.git
Added documentation for the new property parameter
Ken Robertson (author)
Thu Apr 10 14:49:13 -0700 2008
commit  adecabc80c625c9473613f69ec4c83729336bb05
tree    e35d33f61fc35e1562dd4667388f16c439334eef
parent  0e283f878c5bd0a3cb241a553ba2c967e17b3e91
...
123
124
125
 
 
126
127
128
...
130
131
132
133
 
134
135
136
...
138
139
140
 
 
141
142
143
...
123
124
125
126
127
128
129
130
...
132
133
134
 
135
136
137
138
...
140
141
142
143
144
145
146
147
0
@@ -123,6 +123,8 @@ module DataMapper
0
     # ==== Parameters
0
     # value<Object, nil>::
0
     #   The value to dump
0
+    # property<Property, nil>::
0
+    #   The property the type is being used by
0
     #
0
     # ==== Returns
0
     # Object:: Dumped object
0
@@ -130,7 +132,7 @@ module DataMapper
0
     #
0
     # @public
0
     def self.dump(value, property)
0
-      value
0
+        value
0
     end
0
 
0
     # Stub instance method for loading
0
@@ -138,6 +140,8 @@ module DataMapper
0
     # ==== Parameters
0
     # value<Object, nil>::
0
     #   The value to serialize
0
+    # property<Property, nil>::
0
+    #   The property the type is being used by
0
     #
0
     # ==== Returns
0
     # Object:: Serialized object. Must be the same type as the ruby primitive

Comments