Class: Sqreen::Context
- Inherits:
-
Object
- Object
- Sqreen::Context
- Defined in:
- lib/sqreen/context.rb
Overview
Context
Instance Attribute Summary collapse
-
#bt ⇒ Object
Returns the value of attribute bt.
Class Method Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Object
- #get_current_backtrace ⇒ Object
-
#initialize ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize ⇒ Context
Returns a new instance of Context.
15 16 17 |
# File 'lib/sqreen/context.rb', line 15 def initialize @bt = get_current_backtrace end |
Instance Attribute Details
#bt ⇒ Object
Returns the value of attribute bt.
9 10 11 |
# File 'lib/sqreen/context.rb', line 9 def bt @bt end |
Class Method Details
Instance Method Details
#==(other) ⇒ Object
24 25 26 |
# File 'lib/sqreen/context.rb', line 24 def ==(other) other.bt == @bt end |
#get_current_backtrace ⇒ Object
19 20 21 22 |
# File 'lib/sqreen/context.rb', line 19 def get_current_backtrace # Force caller to be resolved now caller.map(&:to_s) end |