gbchaosmaster/nutella

View on GitHub
lib/nutella/core_ext/string/exclude.rb

Summary

Maintainability
A
0 mins
Test Coverage
class String
  # The inverse of <tt>String#include?</tt>.
  #
  # @param [String] str the string to test for exclusion
  # @return [Boolean] whether or not the string excludes the substring +str+
  def exclude?(str)
    !include? str
  end
  alias excludes? exclude?
end