active_support
等をirbでrequireするのが面倒な場合は.irbrc
を設置する
vi ~/.irbrc
%w(pp active_support/core_ext tapp).each do |file|
begin
require file
rescue LoadError
puts $!
end
end
pp
, active_support/core_ext
, tapp
がrequireされた状態でirbが開始されるようになる。
他にも、IRB.confの設定もここで行える
http://www.ruby-lang.org/ja/old-man/html/irb.html