lib/rubygems/package/old.rb
##
# A list of file names contained in this gem
A list of file names contained in this gem
A list of file names contained in this gem
def contents
    return @contents if @contents
    open @gem, 'rb' do |io|
      read_until_dashes io 
      header = file_list io
      @contents = header.map { |file| file['path'] }
    end
  end
def contents return @contents if @contents open @gem , 'rb' do | io | read_until_dashes io header = file_list io @contents = header . map { | file | file [ 'path' ] } end end
A list of file names contained in this gem
A list of file names contained in this gem
# spec