lib/rujitsu/object.rb in rujitsu-0.3.3 vs lib/rujitsu/object.rb in rujitsu-0.4.0

- old
+ new

@@ -1,4 +1,6 @@ +# encoding: utf-8 + 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