public Method

Enumerable.include_any?(*args)

Look for any of an array of things inside another array (or any Enumerable).

['louie', 'bert'].include_any?('louie', 'chicken')
=> true

Source Code

# File merb/core_ext/enumerable.rb, line 24
def include_any?(*args)
  args.any? {|arg| self.include?(arg) }
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.