Flowdock
method

exclude?

Importance_1
Ruby on Rails latest stable (v4.1.8) - 0 notes - Class: String
exclude?(string) public

The inverse of String#include?. Returns true if the string does not include the other string.

"hello".exclude? "lo" # => false
"hello".exclude? "ol" # => true
"hello".exclude? ?h   # => false
Show source
Register or log in to add new notes.