Method: LazyGraph::StackPointer#method_missing

Defined in:
lib/lazy_graph/stack_pointer.rb

#method_missing(name, *args, &block) ⇒ Object

Handles method calls not explicitly defined in this class by delegating them first to the frame, then to the parent, recursively up the stack.



39
40
41
42
43
44
45
46
47
# File 'lib/lazy_graph/stack_pointer.rb', line 39

def method_missing(name, *args, &block)
  if frame.respond_to?(name)
    frame.send(name, *args, &block)
  elsif parent
    parent.send(name, *args, &block)
  else
    super
  end
end