Class: Hoss::Config::WildcardPatternList::WildcardPattern Private
- Inherits:
-
Object
- Object
- Hoss::Config::WildcardPatternList::WildcardPattern
- Defined in:
- lib/hoss/config/wildcard_pattern_list.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#initialize(str) ⇒ WildcardPattern
constructor
private
A new instance of WildcardPattern.
- #match?(other) ⇒ Boolean (also: #match) private
Constructor Details
#initialize(str) ⇒ WildcardPattern
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of WildcardPattern.
26 27 28 |
# File 'lib/hoss/config/wildcard_pattern_list.rb', line 26 def initialize(str) @pattern = convert(str) end |
Instance Method Details
#match?(other) ⇒ Boolean Also known as: match
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
30 31 32 |
# File 'lib/hoss/config/wildcard_pattern_list.rb', line 30 def match?(other) !!@pattern.match(other) end |