<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for LeeCornelison</title><link>http://disqus.com/by/LeeCornelison/</link><description></description><atom:link href="http://disqus.com/LeeCornelison/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 17 Oct 2007 18:54:50 -0000</lastBuildDate><item><title>Re: Ruby Debugger</title><link>http://e168f07.7fff.com/2007/10/17/ruby-debugger/#comment-5441</link><description>&lt;p&gt;Jumping on the 'puts' Bandwagon for debugging... one of the great things about Ruby is how easy it is to churn out simple tests for your classes.&lt;/p&gt;&lt;p&gt;When having problems decyphering the Rake spot messages about my Card.rb class this week, I just wrote my own tester program; here is how I started, when I couldn't get the initialize method to work.&lt;/p&gt;&lt;p&gt;I just put this 'tester.rb' file in the lib folder and ran.&lt;br&gt;Hope this idea helps someone....&lt;/p&gt;&lt;p&gt;## ------ tester.rb -----------&lt;/p&gt;&lt;p&gt;require 'lib/card'&lt;/p&gt;&lt;p&gt;first = &lt;a href="http://Card.new" rel="nofollow noopener" target="_blank" title="Card.new"&gt;Card.new&lt;/a&gt;(11)&lt;br&gt;puts first.rank&lt;br&gt;first = &lt;a href="http://Card.new" rel="nofollow noopener" target="_blank" title="Card.new"&gt;Card.new&lt;/a&gt;(27)&lt;br&gt;puts first.suit&lt;/p&gt;&lt;p&gt;second = &lt;a href="http://Card.new" rel="nofollow noopener" target="_blank" title="Card.new"&gt;Card.new&lt;/a&gt;(HQ)&lt;br&gt;puts second.human_readable&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LeeCornelison</dc:creator><pubDate>Wed, 17 Oct 2007 18:54:50 -0000</pubDate></item></channel></rss>