Class: IRWebmachine::Pry::EnterStack

Inherits:
Pry::ClassCommand
  • Object
show all
Defined in:
lib/irwebmachine/pry/enter_stack.rb

Instance Method Summary collapse

Instance Method Details

#processObject



18
19
20
21
# File 'lib/irwebmachine/pry/enter_stack.rb', line 18

def process
  @req.trace! *@app.last_request
  repl @req.stack.continue
end

#setupObject



12
13
14
15
16
# File 'lib/irwebmachine/pry/enter_stack.rb', line 12

def setup
  @app = target.eval "app"
  @pry = Pry.new :commands => IRWebmachine::Pry::Nav
  @req = IRWebmachine::TracedRequest.new @app.unbox
end