Class: Mongory::Utils::Debugger::TraceEntry
- Inherits:
-
Struct
- Object
- Struct
- Mongory::Utils::Debugger::TraceEntry
- Defined in:
- lib/mongory/utils/debugger.rb
Overview
A trace entry representing a single matcher output at a given indentation level.
Instance Attribute Summary collapse
-
#level ⇒ Integer
The indentation level of this entry.
-
#text ⇒ String
The string to be printed.
Instance Method Summary collapse
Instance Attribute Details
#level ⇒ Integer
Returns the indentation level of this entry.
118 119 120 121 122 |
# File 'lib/mongory/utils/debugger.rb', line 118 TraceEntry = Struct.new(:text, :level) do def formatted "#{' ' * level}#{text}" end end |
#text ⇒ String
Returns the string to be printed.
118 119 120 121 122 |
# File 'lib/mongory/utils/debugger.rb', line 118 TraceEntry = Struct.new(:text, :level) do def formatted "#{' ' * level}#{text}" end end |
Instance Method Details
#formatted ⇒ Object
119 120 121 |
# File 'lib/mongory/utils/debugger.rb', line 119 def formatted "#{' ' * level}#{text}" end |