class Puppet::Util::Profiler::Logging::Sequence

Constants

INITIAL
SEPARATOR

Public Class Methods

new() click to toggle source
   # File lib/puppet/util/profiler/logging.rb
28 def initialize
29   @elements = [INITIAL]
30 end

Public Instance Methods

down() click to toggle source
   # File lib/puppet/util/profiler/logging.rb
36 def down
37   @elements << INITIAL
38 end
next() click to toggle source
   # File lib/puppet/util/profiler/logging.rb
32 def next
33   @elements[-1] += 1
34 end
to_s() click to toggle source
   # File lib/puppet/util/profiler/logging.rb
44 def to_s
45   @elements.join(SEPARATOR)
46 end
up() click to toggle source
   # File lib/puppet/util/profiler/logging.rb
40 def up
41   @elements.pop
42 end