Sha256: ddf6f54b51f8e508fdb1237f0d8f0d6e39f7b538dc8a0152cd4620d5234f3d5d
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 Bytes
Contents
# -*- encoding: utf-8 -*- # Object extensions class Object # Syntactic sugar for arrays. # # Definition: # object.in? array === array.include? object # # @example # array=['a','b','c'] # object='b' # object.in? array # => true # # @return [Boolean] true iff this object is included in the array. def in?(array) array.include?(self) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webget_ruby_ramp-1.8.2 | lib/webget_ruby_ramp/object.rb |