diff options
Diffstat (limited to 'data/sisu/conf/ruby')
-rw-r--r-- | data/sisu/conf/ruby/irbrc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/data/sisu/conf/ruby/irbrc b/data/sisu/conf/ruby/irbrc new file mode 100644 index 00000000..b585faf6 --- /dev/null +++ b/data/sisu/conf/ruby/irbrc @@ -0,0 +1,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 + |