initial release

This commit is contained in:
Sven 2006-02-12 02:08:05 +00:00
parent d70ae75b58
commit 87822f07c5
1 changed files with 27 additions and 0 deletions

27
Irb.mw Normal file
View File

@ -0,0 +1,27 @@
=ri in irb=
<pre>
def ri arg
puts `ri #{arg}`
end
class Module
def ri(meth=nil)
if meth
if instance_methods(false).include? meth.to_s
puts `ri #{self}##{meth}`
else
super
end
else
puts `ri #{self}`
end
end
end
</pre>
=Tab completion=
<pre>
require 'irb/completion'
ARGV.concat [ "--readline", "--prompt-mode", "simple" ]
</pre>