module WebConsole::Rubinius

Public Class Methods

current_bindings() click to toggle source

Gets the current bindings for all available Ruby frames.

Filters the internal Rubinius and WebConsole frames.

# 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