Method: Gem::Net::InternetMessageIO#each_list_item
- Defined in:
- lib/rubygems/vendor/net-protocol/lib/net/protocol.rb
#each_list_item ⇒ Object
*library private* (cannot handle ‘break’)
386 387 388 389 390 |
# File 'lib/rubygems/vendor/net-protocol/lib/net/protocol.rb', line 386 def each_list_item while (str = readuntil("\r\n")) != ".\r\n" yield str.chop end end |