Rails3 の Generator で使えるアクションは Thor::Actions ベースに Rails でさらに追加されている。 http://github.com/wycats/thor/blob/master/lib/thor/actions.rb Thor::Action http://textmate.rubyforge.org/thor/Thor/Actions.html http://github.com/rails/rails/blob/master/railties/lib/rails/generators/actions.rb Rails::Generators::Action このエントリの目的は↑の URL のメモなんだが、一応少し説明。 例えば active_record の model ファイルのソースのこの部分では Thor の template メソッド