class Puppet::Util::Profiler::Logging::Sequence
Constants
- INITIAL
- SEPARATOR
Public Class Methods
new()
click to toggle source
# File lib/puppet/util/profiler/logging.rb 29 def initialize 30 @elements = [INITIAL] 31 end
Public Instance Methods
down()
click to toggle source
# File lib/puppet/util/profiler/logging.rb 37 def down 38 @elements << INITIAL 39 end
next()
click to toggle source
# File lib/puppet/util/profiler/logging.rb 33 def next 34 @elements[-1] += 1 35 end
to_s()
click to toggle source
# File lib/puppet/util/profiler/logging.rb 45 def to_s 46 @elements.join(SEPARATOR) 47 end
up()
click to toggle source
# File lib/puppet/util/profiler/logging.rb 41 def up 42 @elements.pop 43 end