ClassX::Commandableで簡単CLIアプリ - I sort my thought...

screenshot

東京Ruby会議の懇親会で一番反響が良かったのはClassX::Commandableだったということでブログでもあたらめて紹介しておく。 MooseにはMooseX::GetoptとかMooseX::App::Cmdという便利なモジュールがあったのでMooseX::GetoptをパクってClassX::Commandableというのを作ったという話。 require 'classx' require 'classx/commandable' $ClassXCommandableMappingOf[Symbol] = String class YourApp < ClassX extend Commandable has :a...

http://d.hatena.ne.jp/walf443/20080823/1219447431
http://b.hatena.ne.jp/entry/http://d.hatena.ne.jp/walf443/20080823/1219447431