Class: Raygun::Apm::Blacklist::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/raygun/apm/blacklist/parser.rb

Constant Summary collapse

COMMENT =
/^#[^<].*/
ANONYMOUS =
/^#<.*:.*>?/

Instance Method Summary collapse

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