lib/ripple/document/key.rb in ripple-1.0.0.beta vs lib/ripple/document/key.rb in ripple-1.0.0.beta2
- old
+ new
@@ -15,23 +15,21 @@
define_method(:key=) { |v| send(:"#{prop}=", v) }
define_method(:key_attr) { prop }
end
end
- module InstanceMethods
- # Reads the key for this Document.
- def key
- @key
- end
-
- # Sets the key for this Document.
- def key=(value)
- @key = value.to_s
- end
-
- def key_attr
- :key
- end
+ # Reads the key for this Document.
+ def key
+ @key
+ end
+
+ # Sets the key for this Document.
+ def key=(value)
+ @key = value.to_s
+ end
+
+ def key_attr
+ :key
end
end
end
end