Class: Utils::Patterns::RegexpPattern
- Defined in:
- lib/utils/patterns.rb
Instance Attribute Summary
Attributes inherited from Pattern
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ RegexpPattern
constructor
A new instance of RegexpPattern.
Methods inherited from Pattern
Constructor Details
#initialize(opts = {}) ⇒ RegexpPattern
Returns a new instance of RegexpPattern.
34 35 36 37 |
# File 'lib/utils/patterns.rb', line 34 def initialize(opts = {}) super @matcher = Regexp.new(@pattern, @icase ? Regexp::IGNORECASE : 0) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Utils::Patterns::Pattern