From: Brian Candler Date: 2010-09-15T22:23:39+09:00 Subject: Re: how to install ib ruby api? Pen Ttt wrote: > i don't want to input $:.unshift 'ib-ruby/trunk' everytime when i > want to use it,how to solve it ? option 1: start your session with irb -Iib-ruby/trunk option 2: put the $:.unshift 'ib-ruby/trunk' into a file called boot.rb, then you just do require 'boot' before require 'ib' option 3: install the ib gem (and then require 'rubygems'; require 'ib') option 4: put the session setup into ~/.irbrc [not recommended, you don't want all your sessions to have this] option 5: copy all the ib code into the current directory [messy] If you are building an application, I would be inclined to make a vendor/ subdirectory and install ib under that, and have a boot.rb which adds it to $:. Your app just needs require 'boot' at the top. -- Posted via http://www.ruby-forum.com/.