Class: Munge::Util::BooleanRegex

Inherits:
Object
  • Object
show all
Defined in:
lib/munge/util/boolean_regex.rb

Class Method Summary collapse

Class Method Details

.match?(pattern, string) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
7
8
9
10
# File 'lib/munge/util/boolean_regex.rb', line 4

def self.match?(pattern, string)
  if pattern =~ string
    true
  else
    false
  end
end