class Object
Object
extensions
Public Instance Methods
in?(array)
click to toggle source
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.
# File lib/sixarm_ruby_ramp/object.rb, line 18 def in?(array) array.include?(self) end