Class: Drydock::IgnorefileDefinition::Rule
- Inherits:
-
Struct
- Object
- Struct
- Drydock::IgnorefileDefinition::Rule
- Defined in:
- lib/drydock/ignorefile_definition.rb
Instance Attribute Summary collapse
-
#exclude ⇒ Object
(also: #exclude?)
Returns the value of attribute exclude.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
Instance Method Summary collapse
Instance Attribute Details
#exclude ⇒ Object Also known as: exclude?
Returns the value of attribute exclude
4 5 6 |
# File 'lib/drydock/ignorefile_definition.rb', line 4 def exclude @exclude end |
#pattern ⇒ Object
Returns the value of attribute pattern
4 5 6 |
# File 'lib/drydock/ignorefile_definition.rb', line 4 def pattern @pattern end |
Instance Method Details
#match?(test) ⇒ Boolean
7 8 9 |
# File 'lib/drydock/ignorefile_definition.rb', line 7 def match?(test) File.fnmatch?(pattern, test) end |