blob: b585faf644cab943cf19a6df6a31da54ee4d3d4e (
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
|