Class: Munge::Util::BooleanRegex
- Inherits:
-
Object
- Object
- Munge::Util::BooleanRegex
- Defined in:
- lib/munge/util/boolean_regex.rb
Class Method Summary collapse
Class Method Details
.match?(pattern, string) ⇒ 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 |