Method: WebConsole::Rubinius.current_bindings

Defined in:
lib/web_console/integration/rubinius.rb

.current_bindingsObject

Gets the current bindings for all available Ruby frames.

Filters the internal Rubinius and WebConsole frames.



34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/web_console/integration/rubinius.rb', line 34

def self.current_bindings
  locations = ::Rubinius::VM.backtrace(1, true)

  InternalLocationFilter.new(locations).filter.map do |location|
    Binding.setup(
      location.variables,
      location.variables.method,
      location.constant_scope,
      location.variables.self,
      location
    )
  end
end