Class: Atatus::Config::WildcardPatternList::WildcardPattern Private

Inherits:
Object
  • Object
show all
Defined in:
lib/atatus/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 Attribute Summary collapse

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/atatus/config/wildcard_pattern_list.rb', line 26

def initialize(str)
  @pattern = convert(str)
end

Instance Attribute Details

#patternObject (readonly)

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/atatus/config/wildcard_pattern_list.rb', line 30

def pattern
  @pattern
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)


32
33
34
# File 'lib/atatus/config/wildcard_pattern_list.rb', line 32

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