Class: RCheck::Debugging::Debugger
- Inherits:
-
Object
- Object
- RCheck::Debugging::Debugger
- Defined in:
- lib/rcheck/debugging.rb
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
readonly
Returns the value of attribute backtrace.
-
#items ⇒ Object
readonly
Returns the value of attribute items.
Instance Method Summary collapse
-
#initialize(*items) ⇒ Debugger
constructor
A new instance of Debugger.
- #join ⇒ Object
- #location ⇒ Object
Constructor Details
Instance Attribute Details
#backtrace ⇒ Object (readonly)
Returns the value of attribute backtrace.
14 15 16 |
# File 'lib/rcheck/debugging.rb', line 14 def backtrace @backtrace end |
#items ⇒ Object (readonly)
Returns the value of attribute items.
14 15 16 |
# File 'lib/rcheck/debugging.rb', line 14 def items @items end |
Instance Method Details
#join ⇒ Object
21 22 23 24 25 |
# File 'lib/rcheck/debugging.rb', line 21 def join @items.map do |data| data.is_a?(String) ? data : data.inspect end.join(' ') end |
#location ⇒ Object
27 28 29 |
# File 'lib/rcheck/debugging.rb', line 27 def location @backtrace.first end |