<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: case code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Thu, 24 Jul 2008 04:41:25 GMT</pubDate>
    <description>DZone Snippets: case code</description>
    <item>
      <title>Ruby Title Case</title>
      <link>http://snippets.dzone.com/posts/show/4702</link>
      <description>Capitalize all words in a string with the briefest of snippets!&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;'some string here'.gsub(/\b\w/){$&amp;.upcase}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Sat, 27 Oct 2007 00:41:10 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4702</guid>
      <author>eliazar (eliazar parra)</author>
    </item>
    <item>
      <title>A simple test case using Ruby and XML - Part III</title>
      <link>http://snippets.dzone.com/posts/show/4625</link>
      <description>This Ruby CGI script tests a class, by reading the testdata from an XML file, then outputs the result to the web browser. Refer to parts 1 http://urltea.com/1p7h [dzone.com], and II http://urltea.com/1p7m [dzone.com]&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;#file: test-feed.cgi&lt;br /&gt;&lt;br /&gt;require 'test_feed'&lt;br /&gt;&lt;br /&gt;puts "Content-Type: text/xml"&lt;br /&gt;puts&lt;br /&gt;&lt;br /&gt;puts "&lt;test_report&gt;"&lt;br /&gt;tf = Test_feed.new()&lt;br /&gt;puts tf.plan&lt;br /&gt;puts "&lt;actual&gt;"&lt;br /&gt;tf.print('create_file', tf.tested)&lt;br /&gt;puts "&lt;/actual&gt;"&lt;br /&gt;puts "&lt;/test_report&gt;"&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 09 Oct 2007 10:07:41 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4625</guid>
      <author>jrobertson (James Robertson)</author>
    </item>
  </channel>
</rss>
