class Pry::Command::RaiseUp

N.B. using a regular expresion here so that "raise-up 'foo'" does the right thing.

Public Instance Methods

process() click to toggle source
# File lib/pry/commands/raise_up.rb, line 24
def process
  return stagger_output help if captures[0] =~ /(-h|--help)\b/
  # Handle 'raise-up', 'raise-up "foo"', 'raise-up RuntimeError, 'farble' in a rubyesque manner
  target.eval("_pry_.raise_up#{captures[0]}")
end