76 77 78 79 80 81 82
# File 'lib/netrc.rb', line 76 def readto l = [] while length > 0 && ! yield(self[0]) l << shift end return l.join end