Class: Puppet::Util::Profiler::Logging::Sequence
- Defined in:
- lib/puppet/util/profiler/logging.rb
Constant Summary collapse
- INITIAL =
0
- SEPARATOR =
'.'
Instance Method Summary collapse
- #down ⇒ Object
-
#initialize ⇒ Sequence
constructor
A new instance of Sequence.
- #next ⇒ Object
- #to_s ⇒ Object
- #up ⇒ Object
Constructor Details
Instance Method Details
#down ⇒ Object
38 39 40 |
# File 'lib/puppet/util/profiler/logging.rb', line 38 def down @elements << INITIAL end |
#next ⇒ Object
34 35 36 |
# File 'lib/puppet/util/profiler/logging.rb', line 34 def next @elements[-1] += 1 end |
#to_s ⇒ Object
46 47 48 |
# File 'lib/puppet/util/profiler/logging.rb', line 46 def to_s @elements.join(SEPARATOR) end |
#up ⇒ Object
42 43 44 |
# File 'lib/puppet/util/profiler/logging.rb', line 42 def up @elements.pop end |