module RujitsuObject
Public Instance Methods
in?(container)
click to toggle source
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
# File lib/rujitsu/object.rb 6 def in? container 7 container.respond_to?(:include?) ? container.include?(self) : container == self 8 end