Sha256: 4b53983ce18bac620e83e628faa51598781eacee885329bff1f81858c1c8b324
Contents?: true
Size: 350 Bytes
Versions: 2
Compression:
Stored size: 350 Bytes
Contents
# 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 end end Object.send(:include, RujitsuObject)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rujitsu-0.5.0 | lib/rujitsu/object.rb |
rujitsu-0.4.0 | lib/rujitsu/object.rb |