<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Pragmatic Forums | Posts in topic 'organize ruby code'</title>
    <link>/forums/200/topics/10336.rss</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>organize ruby code posted by Larry Cai @ Fri, 09 Mar 2012 05:09:09 +0000</title>
      <description/>
      <pubDate>Fri, 09 Mar 2012 05:09:09 +0000</pubDate>
      <guid isPermaLink="false">fora.pragprog.com:200:10336:29164</guid>
      <author>Larry Cai</author>
      <link>http://fora.pragprog.com/forums/200/topics/10336</link>
    </item>
    <item>
      <title>organize ruby code posted by David Copeland @ Fri, 17 Feb 2012 13:51:35 +0000</title>
      <description>&lt;p&gt;Yeah, I think this is only alluded to in the book; it could probably be better called out, but this post on my blog, while focused on the Methadone &lt;span class="caps"&gt;CLI&lt;/span&gt; library, might give you some more info: &lt;a href="http://www.naildrivin5.com/blog/2011/12/19/methadone-the-awesome-cli-library.html"&gt;http://www.naildrivin5.com/blog/2011/12/19/meth&amp;#8230;&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 17 Feb 2012 13:51:35 +0000</pubDate>
      <guid isPermaLink="false">fora.pragprog.com:200:10336:28889</guid>
      <author>David Copeland</author>
      <link>http://fora.pragprog.com/forums/200/topics/10336</link>
    </item>
    <item>
      <title>organize ruby code posted by Larry Cai @ Sun, 12 Feb 2012 15:56:31 +0000</title>
      <description>&lt;p&gt;Thanks.&lt;/p&gt;


	&lt;p&gt;Yes, this is what I want to, and want to see in the beginning of the book.&lt;/p&gt;


	&lt;p&gt;And I can&amp;#8217;t find your sample and related description when I searched in the ebook (b6_0).&lt;/p&gt;</description>
      <pubDate>Sun, 12 Feb 2012 15:56:31 +0000</pubDate>
      <guid isPermaLink="false">fora.pragprog.com:200:10336:28803</guid>
      <author>Larry Cai</author>
      <link>http://fora.pragprog.com/forums/200/topics/10336</link>
    </item>
    <item>
      <title>organize ruby code posted by David Copeland @ Fri, 10 Feb 2012 17:22:50 +0000</title>
      <description>&lt;p&gt;I&amp;#8217;m not sure what you mean &amp;#8220;in the beginning&amp;#8221;, but the book should ultimately describe a format for the bin file that is:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
#!/usr/bin/env ruby

def main(args)
 # main logic here
end

def support_method
end

def another_method
end

# parse options

main(ARGV)
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Is that what you&amp;#8217;re looking for?&lt;/p&gt;</description>
      <pubDate>Fri, 10 Feb 2012 17:22:50 +0000</pubDate>
      <guid isPermaLink="false">fora.pragprog.com:200:10336:28785</guid>
      <author>David Copeland</author>
      <link>http://fora.pragprog.com/forums/200/topics/10336</link>
    </item>
    <item>
      <title>organize ruby code posted by Larry Cai @ Fri, 10 Feb 2012 09:28:03 +0000</title>
      <description>&lt;p&gt;Hi:&lt;/p&gt;


	&lt;p&gt;It is a nice book to concentrate the command line tool, and I have a question when after quickly reading.&lt;/p&gt;


	&lt;p&gt;In the book, it goes to sample codes directly. And I want to see how to organize the ruby tool in the beginning, like whether we should write like below&lt;/p&gt;


&lt;pre&gt;
#!/usr/bin/env ruby
options handling

def methods
end

def methods
end

def main
end

main
&lt;/code&gt;</description>
      <pubDate>Fri, 10 Feb 2012 09:28:03 +0000</pubDate>
      <guid isPermaLink="false">fora.pragprog.com:200:10336:28776</guid>
      <author>Larry Cai</author>
      <link>http://fora.pragprog.com/forums/200/topics/10336</link>
    </item>
  </channel>
</rss>
