Class: Raygun::Apm::Blacklist::Parser
- Inherits:
-
Object
- Object
- Raygun::Apm::Blacklist::Parser
- Defined in:
- lib/raygun/apm/blacklist/parser.rb
Constant Summary collapse
- COMMENT =
/^#[^<].*/
- ANONYMOUS =
/^#<.*:.*>?/
Instance Method Summary collapse
- #add_filters(filters) ⇒ Object
-
#initialize(tracer) ⇒ Parser
constructor
A new instance of Parser.
Constructor Details
#initialize(tracer) ⇒ Parser
Returns a new instance of Parser.
8 9 10 11 |
# File 'lib/raygun/apm/blacklist/parser.rb', line 8 def initialize(tracer) @tracer = tracer @translator = Blacklist::Translator.new end |
Instance Method Details
#add_filters(filters) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/raygun/apm/blacklist/parser.rb', line 13 def add_filters(filters) filters.each do |filter| filter.strip! add_filter(filter) end show_filters end |