Class: ElasticAPM::Config::WildcardPatternList::WildcardPattern Private
- Inherits:
-
Object
- Object
- ElasticAPM::Config::WildcardPatternList::WildcardPattern
- Defined in:
- lib/elastic_apm/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
- #pattern ⇒ Object readonly private
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/elastic_apm/config/wildcard_pattern_list.rb', line 26 def initialize(str) @pattern = convert(str) end |
Instance Attribute Details
#pattern ⇒ Object (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/elastic_apm/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.
32 33 34 |
# File 'lib/elastic_apm/config/wildcard_pattern_list.rb', line 32 def match?(other) !!@pattern.match(other) end |