class Stackdo::CallStack
Attributes
frames[R]
Public Class Methods
from_here()
click to toggle source
# File lib/stackdo.rb, line 75 def self.from_here frames = Stackdo::call_stack_bindings(binding).map do |binding| Stackdo::Frame.from_binding(binding) end CallStack.new(frames: frames) end
new(frames:)
click to toggle source
# File lib/stackdo.rb, line 83 def initialize(frames:) @frames = frames end
Public Instance Methods
walk(&block)
click to toggle source
# File lib/stackdo.rb, line 87 def walk(&block) frames.each(&block) end