Flowdock
method

in?

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: Object
in?(*args) public

Returns true if this object is included in the argument. Argument must be any object which responds to #include?. Usage:

characters = ["Konata", "Kagami", "Tsukasa"]
"Konata".in?(characters) # => true

This will throw an ArgumentError if the argument doesn’t respond to #include?.

Show source
Register or log in to add new notes.