<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Code Snippets for Ruby</title>
    <link>http://www.uwec.edu/code/</link>
    <pubDate>Mon, 19 Jun 2006 19:33:59 GMT</pubDate>
    <description>UW-Eau Claire Web Development code snippets</description>
    <item>
      <title>Allow addition in Hashes</title>
      <link>http://www.uwec.edu/code/Ruby/show/33</link>
      <description>Allows you to do   x = { :a =&amp;gt; 1 } y = { :b =&amp;gt; 2 }  # x + y =&amp;gt; { :a =&amp;gt; 1, :b =&amp;gt; 2 }, but x and y are untouched # x + { :c =&amp;gt; 3 } =&amp;gt; { :a =&amp;gt; 1, :c =&amp;gt; 3 }</description>
      <pubDate>Mon, 19 Jun 2006 19:33:59 GMT</pubDate>
      <guid>http://www.uwec.edu/code/Ruby/show/33</guid>
      <author>hoganbp)</author>
    </item>
    <item>
      <title>Comma-format numbers</title>
      <link>http://www.uwec.edu/code/Ruby/show/34</link>
      <description>Ruby implementation of the well-known comma regular expression.  format_with_commas 1222343561234 would return &amp;quot;1,222,343,561,234&amp;quot;</description>
      <pubDate>Mon, 19 Jun 2006 19:33:46 GMT</pubDate>
      <guid>http://www.uwec.edu/code/Ruby/show/34</guid>
      <author>hoganbp)</author>
    </item>
    <item>
      <title>URL Encoding</title>
      <link>http://www.uwec.edu/code/Ruby/show/36</link>
      <description>Quickly encode URLs in Ruby.</description>
      <pubDate>Mon, 19 Jun 2006 19:33:02 GMT</pubDate>
      <guid>http://www.uwec.edu/code/Ruby/show/36</guid>
      <author>hoganbp)</author>
    </item>
    <item>
      <title>Add a random method to the Array class</title>
      <link>http://www.uwec.edu/code/Ruby/show/38</link>
      <description>Adds a handy function that lets you randomly pick n elements from an array.</description>
      <pubDate>Mon, 19 Jun 2006 19:32:28 GMT</pubDate>
      <guid>http://www.uwec.edu/code/Ruby/show/38</guid>
      <author>hoganbp)</author>
    </item>
    <item>
      <title>Numbers to ordinals</title>
      <link>http://www.uwec.edu/code/Ruby/show/39</link>
      <description>number_to_ordinal(12) =&amp;gt; &amp;quot;12th&amp;quot; number_to_ordinal(7) =&amp;gt; &amp;quot;7th&amp;quot;  Note that floats will be converted to ints (without rounding) before processing.</description>
      <pubDate>Mon, 19 Jun 2006 19:32:17 GMT</pubDate>
      <guid>http://www.uwec.edu/code/Ruby/show/39</guid>
      <author>hoganbp)</author>
    </item>
  </channel>
</rss>
