Class: Dressmaker::Configuration::FileRule
- Defined in:
- lib/dressmaker/configuration/file_rule.rb
Direct Known Subclasses
Defined Under Namespace
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#description ⇒ Object
Returns the value of attribute description.
-
#directory ⇒ Object
readonly
Returns the value of attribute directory.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Rule
Instance Method Summary collapse
Methods inherited from Rule
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
19 20 21 |
# File 'lib/dressmaker/configuration/file_rule.rb', line 19 def action @action end |
#description ⇒ Object
Returns the value of attribute description.
20 21 22 |
# File 'lib/dressmaker/configuration/file_rule.rb', line 20 def description @description end |
#directory ⇒ Object (readonly)
Returns the value of attribute directory.
19 20 21 |
# File 'lib/dressmaker/configuration/file_rule.rb', line 19 def directory @directory end |
#name ⇒ Object
Returns the value of attribute name.
20 21 22 |
# File 'lib/dressmaker/configuration/file_rule.rb', line 20 def name @name end |
Instance Method Details
#execute!(target) ⇒ Object
34 35 36 37 38 |
# File 'lib/dressmaker/configuration/file_rule.rb', line 34 def execute!(target) Delegators.with(target) do |file| action.call(file) end end |