class Tracksperanto::Tool::Prefix
This tool prepends the names of the trackers passing through it with a prefix and an underscore
Public Class Methods
action_description()
click to toggle source
# File lib/tools/prefix.rb, line 7 def self.action_description "Prefix tracker names with text" end
Public Instance Methods
start_tracker_segment(tracker_name)
click to toggle source
Calls superclass method
# File lib/tools/prefix.rb, line 11 def start_tracker_segment(tracker_name) prefixed_name = [prefix.gsub(/_$/, ''), tracker_name] prefixed_name.reject!{|e| e.empty? } super(prefixed_name.join('_')) end