aboutsummaryrefslogtreecommitdiffhomepage
path: root/data/sisu/conf/ruby/irbrc
blob: cceffdfcdb4d44db1b82d4f02ebcb6eb2e5b54ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'irb/completion'
IRB.conf[:use_readline] = true
IRB.conf[:PROMPT_MODE] = :XMP
#IRB.conf[:PROMPT] =
#simple-prompt
def ri arg
  puts `ri #{arg}`
end
def ri(*names)
  system(%{ri #{names.map {|name| name.to_s}.join(" ")}})
end
#require 'rdoc/ri/ri_driver'
#def ri(*names)
#  oargv = Object.const_get(:ARGV)
#  Object.const_set(:ARGV, names)
#  RiDriver.new.process_args
#  Object.const_set(:ARGV, oargv)
#end