Class: Debase::Frame

Inherits:
Object show all
Defined in:
lib/debase/rbx/frame.rb

Instance Method Summary collapse

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

#bindingObject



7
8
9
# File 'lib/debase/rbx/frame.rb', line 7

def binding
  @binding ||= Binding.setup(@location.variables, @location.method, @location.constant_scope)
end

#fileObject



15
16
17
# File 'lib/debase/rbx/frame.rb', line 15

def file
  @location.file
end

#lineObject



11
12
13
# File 'lib/debase/rbx/frame.rb', line 11

def line
  @location.line
end

#selfObject



19
20
21
# File 'lib/debase/rbx/frame.rb', line 19

def self
  @location.receiver
end