2009-10-16 今日のRuby IRBを起動して、CUIを実装するの巻。 def start puts "start" end def stop puts "stop" end def start_irb require 'irb' require 'irb/completion' IRB.start end start_irb なかでstartやstopをコマンドとして呼ぶことができます。 % ruby test_irb.rb >> start start => nil