module ConvenientGrouper::Regex

Constants

ALL_EXPRESSIONS

Public Instance Methods

matches?(value) click to toggle source
# File lib/convenient_grouper/regex.rb, line 13
def matches?(value)
  value.is_a?(String) &&
  ALL_EXPRESSIONS.any? do |expression|
    expression.match(value.strip)
  end
end