Module: Stackdo
- Defined in:
- lib/stackdo.rb
Defined Under Namespace
Classes: CallStack, Environment, Error, Frame, Location, MethodReference, Variable
Class Method Summary collapse
Class Method Details
.call_stack_bindings(binding) ⇒ Object
92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/stackdo.rb', line 92 def self.call_stack_bindings(binding) bindings = [] n = 0 loop do binding = binding.of_caller(n) rescue break n += 1 bindings << binding end bindings end |