read_until_dashes(file)
Reads lines from the supplied IO until a end-of-yaml (—) is reached
file
The IO to process
block
The read line
# File lib/rubygems/old_format.rb, line 115 def self.read_until_dashes(file) while((line = file.gets) && line.chomp.strip != "---") do yield line end end