class Pry::CommandSet

def process_line(val, context = {})

Returns:
  • (CommandSet::Result) -

Parameters:
  • context (Hash) -- The context to execute the commands with
  • val (String) -- The line to execute
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