Skip to content

Instantly share code, notes, and snippets.

@littlemove
Created March 5, 2009 13:30
Show Gist options
  • Save littlemove/74350 to your computer and use it in GitHub Desktop.
Save littlemove/74350 to your computer and use it in GitHub Desktop.
~$ irb
>> require 'open-uri'
=> true
>> foo = open("http://feeds.feedburner.com/walkaways")
=> #<StringIO:0xb7891c0c>
>> foo.each_line{ |l| puts l }
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss version="2.0"><channel>
[...]
</channel></rss>
=> #<StringIO:0xb7891c0c>
>> foo.each_line{ |l| puts l }
=> #<StringIO:0xb7891c0c>
>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment