IRB でのデモを楽にする - 冬通りに消え行く制服ガールは、夢物語にリアルを求めない。 - subtech

screenshot

require "rubygems" require "irb/completion" require "wirble" Wirble.init Wirble.colorize data = <<EOS.split(/\n/) require "future" class Foo def omoi(n) sleep n n end end f = Foo.new f.omoi(1) f.async.omoi(1); nil r = f.async.omoi(5); nil r r = f.async.omoi(3); nil r omois = (1..5).map {|i| f.async.omoi(i).async.tap { p [:ok, i] } }; nil EOS Readline.completion_proc = proc {|word| if word.empty? [ data.shift ] else IRB::InputCompletor::CompletionProc.call(word)...

http://subtech.g.hatena.ne.jp/cho45/20080624/1214236169

なるほど
これはいいものですね
RejectRejectKaigi でデモする予定だったシナリオ
非常に重要

http://b.hatena.ne.jp/entry/http://subtech.g.hatena.ne.jp/cho45/20080624/1214236169