Method: Pry::CommandSet#process_line
- Defined in:
- lib/pry/command_set.rb
#process_line(val, context = {}) ⇒ CommandSet::Result
Process the given line to see whether it needs executing as a command.
351 352 353 354 355 356 357 358 359 |
# File 'lib/pry/command_set.rb', line 351 def process_line(val, context = {}) if (command = find_command(val)) context = context.merge(command_set: self) retval = command.new(context).process_line(val) Result.new(true, retval) else Result.new(false) end end |