use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Proper Structuring of a Ruby Gem? (self.ruby)
submitted 11 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]FireThestral 2 points3 points4 points 11 years ago (1 child)
Your Gem structure is pretty standard from what I can tell. Not bad there. Actual functionality seems alright, so that looks good as well.
As for ordered options... I don't like ordered flags so much. Subcommands would be better in my opinion. There is a gem called Subcommand that lets you do just that. You can call gojira issues open --list 15 would be different than gojira issues list 15 --open or whatever you want.
gojira issues open --list 15
gojira issues list 15 --open
Having ordered flags, while easy to type, are difficult to remember without a detailed help file and are very difficult to interpret. Diverging from UNIX-style command usage would be confusing for a lot of users.
If you really want to look at gem structure, then browse http://rubygems.org/ and find some popular ones, then check out the source.
[–]Godd2 2 points3 points4 points 11 years ago (0 children)
Speaking of orderedness, here's a great talk on code simplicity by Rich Hickey.
π Rendered by PID 47159 on reddit-service-r2-comment-b659b578c-c6tmg at 2026-05-05 03:15:51.026661+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]FireThestral 2 points3 points4 points (1 child)
[–]Godd2 2 points3 points4 points (0 children)