Ruby on Rails ActiveSupport Core Extensions: String Exclusion


Example

String#exclude?

The inverse of String#include?

"hello".exclude? "lo" # => false
"hello".exclude? "ol" # => true
"hello".exclude? ?h   # => false