Method: NewRelic::Agent::RulesEngine::SegmentTermsRule#prefix_matches_on_segment_boundary?

Defined in:
lib/new_relic/agent/rules_engine/segment_terms_rule.rb

#prefix_matches_on_segment_boundary?(string) ⇒ Boolean

Returns:

  • (Boolean)
[View source]

45
46
47
48
# File 'lib/new_relic/agent/rules_engine/segment_terms_rule.rb', line 45

def prefix_matches_on_segment_boundary?(string)
  string.size > @prefix.size &&
    string[@prefix.chomp(SEGMENT_SEPARATOR).size].chr == SEGMENT_SEPARATOR
end