diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-02-01 16:55:53 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-02-01 16:55:53 -0500 |
commit | 704af1677c2904d0ccdff9fe75ed030ce6f060c8 (patch) | |
tree | 01298810b5b8b91031583e989fa774e4e000bfc7 /data/sisu/v3/conf/ruby/irbrc | |
parent | debian/changelog 2.7.9-1 (diff) | |
parent | v3 introduced as development branch, invoked using "sisu --v3 [instructions] (diff) |
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'data/sisu/v3/conf/ruby/irbrc')
-rw-r--r-- | data/sisu/v3/conf/ruby/irbrc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/data/sisu/v3/conf/ruby/irbrc b/data/sisu/v3/conf/ruby/irbrc new file mode 100644 index 00000000..cceffdfc --- /dev/null +++ b/data/sisu/v3/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 + |