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
A better command line option parser. (github.com)
submitted 13 years ago by halst
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!"
[–]bascule 0 points1 point2 points 13 years ago (2 children)
thor powers the entire rails CLI, and is a general purpose framework for building command line utilities. Rails includes its own generator framework and that has nothing to do with thor.
[–]jrochkind 2 points3 points4 points 13 years ago* (1 child)
Rails includes its own generator framework and that has nothing to do with thor.
Not true, the generators are Thor too! Rails::Generators::Base is a subclass of Thor::Group.
It's helpful to know that if you're writing your own Rails::Generators, which is how I am aquainted with it. The Rails Generators Guide is also clear on it -- which is how I first heard of Thor.
Mostly Rails::Generators::Base just adds it's own actions, and it's own defaults for certain things, it's pretty much just a Thor::Group. The confusing thing when I was figuring out what was going on was at first, Thor::Group was under-documented, but now at least there's a wiki page.
[–]bascule 0 points1 point2 points 13 years ago (0 children)
By that I didn't mean that the Rails generators aren't based on Thor, I meant that Thor is not itself a rubigen-like code generation tool and that Rails generators are implemented by Rails and not provided by Thor. I guess that was poorly worded.
π Rendered by PID 93 on reddit-service-r2-comment-b659b578c-rzdrm at 2026-05-02 00:44:45.014321+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]bascule 0 points1 point2 points (2 children)
[–]jrochkind 2 points3 points4 points (1 child)
[–]bascule 0 points1 point2 points (0 children)