<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/ruby/tags/format</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 06 Sep 2008 19:48:36 GMT</pubDate>
<item>
<title>(Ruby) Format strings like PRINT USING - Agent</title>
<link>http://snipplr.com/view/3408/format-strings-like-print-using/</link>
<description><![CDATA[ <p>This is an extension to Ruby's String class. Just put this code in a file and include it. This basically takes a string and adds literals and padding to it. For example, you can format a phone number with optional area code like this:

    "5445556747".using('(###) ###-####', '', true)
       => (544) 555-6747</p> ]]></description>
<pubDate>Sat, 28 Jul 2007 11:38:54 GMT</pubDate>
<guid>http://snipplr.com/view/3408/format-strings-like-print-using/</guid>
</item>
<item>
<title>(Ruby) Formatting a date with or without the time - alexwilliams</title>
<link>http://snipplr.com/view/1911/formatting-a-date-with-or-without-the-time/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 01 Jan 2007 11:07:45 GMT</pubDate>
<guid>http://snipplr.com/view/1911/formatting-a-date-with-or-without-the-time/</guid>
</item>
</channel>
</rss>