Module: NewRelic::Security::Instrumentation::Nokogiri::XML::Node::Chain
- Defined in:
- lib/newrelic_security/instrumentation-security/nokogiri/chain.rb
Class Method Summary collapse
Class Method Details
.instrument! ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/newrelic_security/instrumentation-security/nokogiri/chain.rb', line 7 def self.instrument! ::Nokogiri::XML::Node.class_eval do include NewRelic::Security::Instrumentation::Nokogiri::XML alias_method :xpath_without_security, :xpath def xpath(*var) retval = nil event = xpath_on_enter(*var) { retval = xpath_without_security(*var) } xpath_on_exit(event) { return retval } end end end |