lib/ripple/document/key.rb in ripple-0.8.0 vs lib/ripple/document/key.rb in ripple-0.8.1

- old
+ new

@@ -27,10 +27,13 @@ #{prop}.to_s end def key=(value) self.#{prop} = value end + def key_attr + :#{prop} + end CODE end end module InstanceMethods @@ -41,9 +44,13 @@ # Sets the key for this Document. def key=(value) @key = value.to_s end + + def key_attr + :key + end end end end end