Sha256: 98004fc37431b6184531a7954a091961a2d5e7411a72e1ec17d6d2310a4d182c
Contents?: true
Size: 284 Bytes
Versions: 2
Compression:
Stored size: 284 Bytes
Contents
class Object # 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rujitsu-0.3.1 | lib/rujitsu/object.rb |
rujitsu-0.3 | lib/rujitsu/object.rb |