class Pry::Command::AmendLine

Public Instance Methods

process() click to toggle source
# File lib/pry/commands/amend_line.rb, line 19
def process
  raise CommandError, "No input to amend." if eval_string.empty?

  eval_string.replace amended_input(eval_string)
  run "fix-indent"
  run "show-input"
end