skip_ruby(io)
Skips the Ruby self-install header in io.
# File lib/rubygems/package/old.rb, line 119 def skip_ruby(io) # :nodoc: loop do line = io.gets return if line.chomp == '__END__' break unless line end raise Gem::Exception, "Failed to find end of Ruby script while reading gem" end