Sample .irbrc (with autocomplete)

Feb 02
2008
cp .irbrc $HOME; irb
require "irb/completion"
 
IRB.conf[:PROMPT_MODE] = :SIMPLE
 
def ri(*arg)
  system("ri #{arg.join" "}")
end
 
class Object
  def __find_method(reg=Regexp.new)
     self.methods.sort.grep reg
  end
 
  alias :fm :__find_method
end

Comments are closed.

Calendar

February 2008
M T W T F S S
« Jan   Mar »
 123
45678910
11121314151617
18192021222324
2526272829  

Tags