class Pry::CommandSet

def delete(*searches)

Parameters:
  • searches (Array) -- the matches or listings of the commands
def delete(*searches)
  searches.each do |search|
    cmd = find_command_by_match_or_listing(search)
    @commands.delete cmd.match
  end
end