# File lib/new_relic/agent/rules_engine/replacement_rule.rb, line 53 def apply_replacement(string) method = @replace_all ? :gsub : :sub string.send(method, @match_expression, @replacement) end