Class: Hoss::Config::WildcardPatternList::WildcardPattern Private

Inherits:
Object
  • Object
show all
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

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.

Returns:

  • (Boolean)


30
31
32
# File 'lib/hoss/config/wildcard_pattern_list.rb', line 30

def match?(other)
  !!@pattern.match(other)
end