精華區beta Ruby 關於我們 聯絡資訊
http://lightyror.blogspot.com/2006/10/irb-tab-completion.html 你每次使用 Rails 的 ruby script/console 是不是對他們預設支援 tab completion 感到流口水呢? 如果 irb 也可以如此那就太棒了 今早看 anw 的 irb 其實也支援自動完成 發現只要我們這樣啟動 irb irb --readline -r irb/completion 或是在家目錄寫下一個檔案叫 .irbrc require 'irb/completion' IRB.conf[:PROMPT_MODE] = :SIMPLE 就可以支援 irb 的 tab completion 當你打到不太確定的 methods 時 ,按下 tab 吧 你會有意外驚喜的 -- lighty RoR 是一個介紹 lighttpd , SQLite , Ruby and Rails 的 Blog http://lightyror.blogspot.com/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.230.105.196