Module: PatternMatcher
- Defined in:
- lib/pattern_matcher.rb
Class Method Summary collapse
Class Method Details
.configuration ⇒ Object
18 19 20 |
# File 'lib/pattern_matcher.rb', line 18 def self.configuration @configuration ||= PatternMatcher::Config.new end |
.configure {|configuration| ... } ⇒ Object
13 14 15 16 |
# File 'lib/pattern_matcher.rb', line 13 def self.configure yield configuration if block_given? @patterns = Matcher.initialize_patterns end |
.configured? ⇒ Boolean
22 23 24 |
# File 'lib/pattern_matcher.rb', line 22 def self.configured? !@configuration.nil? end |