Class: Dressmaker::Configuration::DirectoryRule::All

Inherits:
Dressmaker::Configuration::DirectoryRule show all
Defined in:
lib/dressmaker/configuration/directory_rule.rb

Instance Attribute Summary

Attributes inherited from Dressmaker::Configuration::DirectoryRule

#description, #name

Attributes inherited from Rule

#description, #informed

Instance Method Summary collapse

Methods inherited from Dressmaker::Configuration::DirectoryRule

#execute!

Methods inherited from Rule

#inform, #informed?

Instance Method Details

#matches?(base, target) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/dressmaker/configuration/directory_rule.rb', line 10

def matches?(base, target)
  File.directory?(File.join(base, target))
end