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

Constants

INITIAL
SEPARATOR

Public Instance Methods

down() click to toggle source
# File lib/puppet/util/profiler/logging.rb, line 36
def down
  @elements << INITIAL
end
next() click to toggle source
# File lib/puppet/util/profiler/logging.rb, line 32
def next
  @elements[-1] += 1
end
to_s() click to toggle source
# File lib/puppet/util/profiler/logging.rb, line 44
def to_s
  @elements.join(SEPARATOR)
end
up() click to toggle source
# File lib/puppet/util/profiler/logging.rb, line 40
def up
  @elements.pop
end

Public Class Methods

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