Class: Dressmaker::Configuration::DirectoryRule
- Defined in:
- lib/dressmaker/configuration/directory_rule.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Rule
Instance Method Summary collapse
Methods inherited from Rule
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
31 32 33 |
# File 'lib/dressmaker/configuration/directory_rule.rb', line 31 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
31 32 33 |
# File 'lib/dressmaker/configuration/directory_rule.rb', line 31 def name @name end |
Instance Method Details
#execute!(target) ⇒ Object
33 34 35 36 37 |
# File 'lib/dressmaker/configuration/directory_rule.rb', line 33 def execute!(target) Delegators.with(File.join(target)) do |dir| action.call(dir) end end |