This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.
clear()
Removes any created gems or specifications from Gem.dir (the default install location).
# File lib/rubygems/test_utilities.rb, line 225 def clear @operations << [:clear] end