G
Gerard A.W. Vreeswijk
Hi,
In Ruby 1.8.0 I used to have a web interface to ri (local webserver)
with a layout that for eye's ease closely resembled the layout of the
online pickaxe. In addition the methods were hyperlinked so that my
web-version of ri was easy to navigate. Very nice.
When I switched to 1.8.2 I discovered that ri's interface is
redefined. As described in ri's generated docs
http://www.ruby-doc.org/stdlib/libdoc/rdoc/rdoc/classes/RiDisplay.html
I tried to make up my own class which implements the various ‘display'
methods in ‘DefaultDisplay',and include the ‘RiDisplay' module in that
class. I did not succeed.
By searching comp.lang.ruby I discovered that Kristof Bastiaensen
wrote an ri interface for emacs, and I tried to adapt that, but
without succes: basically I cannot force `MyDisplay' to write to
string even if I set :stdout options to `false'. (By inspecting the
code I saw that Ri simply overwrites this option if it discovers that
its output isn't going to stdout.)
I find ri's interface um .. not so very intuitive.
Is there anyone who has used RiDisplay with succes and is willing to
help me out writing my own interace? Thanks.
In Ruby 1.8.0 I used to have a web interface to ri (local webserver)
with a layout that for eye's ease closely resembled the layout of the
online pickaxe. In addition the methods were hyperlinked so that my
web-version of ri was easy to navigate. Very nice.
When I switched to 1.8.2 I discovered that ri's interface is
redefined. As described in ri's generated docs
http://www.ruby-doc.org/stdlib/libdoc/rdoc/rdoc/classes/RiDisplay.html
I tried to make up my own class which implements the various ‘display'
methods in ‘DefaultDisplay',and include the ‘RiDisplay' module in that
class. I did not succeed.
By searching comp.lang.ruby I discovered that Kristof Bastiaensen
wrote an ri interface for emacs, and I tried to adapt that, but
without succes: basically I cannot force `MyDisplay' to write to
string even if I set :stdout options to `false'. (By inspecting the
code I saw that Ri simply overwrites this option if it discovers that
its output isn't going to stdout.)
I find ri's interface um .. not so very intuitive.
Is there anyone who has used RiDisplay with succes and is willing to
help me out writing my own interace? Thanks.