この記事は Ruby Advent Calendar jp: 2009 : ATND が楽しそうなので触発されて書いてますが参加してはいません。飛び入りですみません。あとまさかのネタ被りしてたら本当にごめんなさい。 sub irb Rubyist の必需品 irb 多くの人が愛用していることと思います。わたしも大好きです。メソッドの挙動を確認したり、ちょっとした作業の補佐に使ったり、あるいは電卓がわりに、常に起動しているプロセスのひとつです。 けど irb に サブirb を起動するという機能があることを知らない、あるいは知ってるけど使いどころがわからないでのあまり使ってないという人は多いのではないでしょうか。 サブirb はRubyリファレンスマニュアルにも書かれていて、拡張ではない(require は必要ない)基本機能です。「使用例」の項に書かれているように、irb メソッドによって新