Module: Bindex
- Defined in:
- lib/bindex/version.rb,
lib/bindex/rubinius.rb,
ext/bindex/cruby.c
Defined Under Namespace
Modules: Rubinius
Constant Summary collapse
- VERSION =
"0.5.0"
Class Method Summary collapse
-
.current_bindings ⇒ Object
Gets the current bindings for all available Ruby frames.
Class Method Details
.current_bindings ⇒ Object
Gets the current bindings for all available Ruby frames.
Filters the internal Rubinius and Bindex frames.
36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/bindex/rubinius.rb', line 36 def Bindex.current_bindings locations = ::Rubinius::VM.backtrace(1, true) Bindex::Rubinius::InternalLocationFilter.new(locations).filter.map do |location| Binding.setup( location.variables, location.variables.method, location.constant_scope, location.variables.self, location ) end end |