lib/rujitsu/object.rb in rujitsu-0.3.1 vs lib/rujitsu/object.rb in rujitsu-0.3.3
- old
+ new
@@ -1,7 +1,9 @@
-class Object
+module RujitsuObject
# return true if this object is within the given container
# if the supplied container does not respond to include? then an equality test is used instead
def in? container
container.respond_to?(:include?) ? container.include?(self) : container == self
end
-end
\ No newline at end of file
+end
+
+Object.send(:include, RujitsuObject)