Class: Dressmaker::Configuration::Matcher

Inherits:
Object
  • Object
show all
Defined in:
lib/dressmaker/configuration/matcher.rb

Direct Known Subclasses

DirectoryMatcher, FileMatcher

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configurationObject (readonly)

Returns the value of attribute configuration.



5
6
7
# File 'lib/dressmaker/configuration/matcher.rb', line 5

def configuration
  @configuration
end

Instance Method Details

#update_description_on_rule(rule) ⇒ Object



7
8
9
10
11
12
# File 'lib/dressmaker/configuration/matcher.rb', line 7

def update_description_on_rule(rule)
  if rule.respond_to?(:description=)
    rule.description = configuration.description_holder
    configuration.description_holder = nil
  end
end