Class: Debase::Frame
Instance Method Summary collapse
- #binding ⇒ Object
- #file ⇒ Object
-
#initialize(location) ⇒ Frame
constructor
A new instance of Frame.
- #line ⇒ Object
- #self ⇒ Object
Constructor Details
#initialize(location) ⇒ Frame
Returns a new instance of Frame.
3 4 5 |
# File 'lib/debase/rbx/frame.rb', line 3 def initialize(location) @location = location end |
Instance Method Details
#binding ⇒ Object
7 8 9 |
# File 'lib/debase/rbx/frame.rb', line 7 def binding @binding ||= Binding.setup(@location.variables, @location.method, @location.constant_scope) end |
#file ⇒ Object
15 16 17 |
# File 'lib/debase/rbx/frame.rb', line 15 def file @location.file end |
#line ⇒ Object
11 12 13 |
# File 'lib/debase/rbx/frame.rb', line 11 def line @location.line end |
#self ⇒ Object
19 20 21 |
# File 'lib/debase/rbx/frame.rb', line 19 def self @location.receiver end |