Class: Dressmaker::Configuration::FileRule::All
- Inherits:
-
Dressmaker::Configuration::FileRule
- Object
- Rule
- Dressmaker::Configuration::FileRule
- Dressmaker::Configuration::FileRule::All
- Defined in:
- lib/dressmaker/configuration/file_rule.rb
Instance Attribute Summary
Attributes inherited from Dressmaker::Configuration::FileRule
#action, #description, #directory, #name
Attributes inherited from Rule
Instance Method Summary collapse
-
#initialize(&action) ⇒ All
constructor
A new instance of All.
- #matches?(base, target) ⇒ Boolean
Methods inherited from Dressmaker::Configuration::FileRule
Methods inherited from Rule
Constructor Details
#initialize(&action) ⇒ All
Returns a new instance of All.
10 11 12 |
# File 'lib/dressmaker/configuration/file_rule.rb', line 10 def initialize(&action) @action = action end |
Instance Method Details
#matches?(base, target) ⇒ Boolean
14 15 16 |
# File 'lib/dressmaker/configuration/file_rule.rb', line 14 def matches?(base, target) File.file?(File.join(base, target)) end |