Class: Raygun::Apm::Blacklist::Translator::DotnetTranslator

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

Overview

Constant Summary collapse

COMMENT =

Foo.Bar::Baz

/^#/
NAMESPACE =
/\./
METHOD =
/::/

Instance Method Summary collapse

Instance Method Details

#translate(filter) ⇒ Object



55
56
57
58
59
60
61
62
63
64
# File 'lib/raygun/apm/blacklist/translator.rb', line 55

def translate(filter)
  if filter !~ COMMENT
    path, method = nil, nil
    path, method = filter.split(METHOD)
    path.gsub!(NAMESPACE, "::")
    [path, method]
  else
    nil
  end
end