De-compress archive and enter its top directory.
Then type:
($ su)
# ruby setup.rb
These simple step installs this program under the default
location of Ruby libraries. You can also install files into
your favorite directory by supplying setup.rb some options.
Try "ruby setup.rb --help".
I did not see any reaction to this announcement yet, so I will be the first one. It works great for me, being the best integration between irb and ri in my opinion. Much better than Python's docstrings ;-), again IMHO.
The nice thing about it is that you turn it on when you need it, no overhead otherwise.
De-compress archive and enter its top directory.
Then type:
($ su)
# ruby setup.rb
These simple step installs this program under the default
location of Ruby libraries. You can also install files into
your favorite directory by supplying setup.rb some options.
Try "ruby setup.rb --help".
De-compress archive and enter its top directory.
Then type:
($ su)
# ruby setup.rb
These simple step installs this program under the default
location of Ruby libraries. You can also install files into
your favorite directory by supplying setup.rb some options.
Try "ruby setup.rb --help".
If you think it makes the irb startup too slow, load it in a thread:
Thread.new{ require 'ihelp' }
But note that calling help will fail before it's completely loaded.
Sorry, but loading it in a separate thread doesn't work under windows (neither 0.1):
irb(main):001:0> "".help
NoMethodError: undefined method `help' for "":String
from (irb):1
from c:/apps/ruby18/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:
5
irb(main):002:0> Time.new
=> Tue Jan 18 13:41:19 W. Europe Standard Time 2005
irb(main):003:0> Time.new
=> Tue Jan 18 13:50:51 W. Europe Standard Time 2005
irb(main):004:0> "".help
NoMethodError: undefined method `help' for "":String
from (irb):4
from c:/apps/ruby18/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:
5
irb(main):005:0>
Note that I have only
Thread.new { require 'ihelp' }
in .irbrc therefore 9 minutes should be enough to load, shouldn't they?
Btw, which differences since 0.1 apart from setup?
Thx
Giuliano
···
--
If you want to send me an email address should be 'p', then a dot, followed by 'bossi' at 'quinary', another dot and 'com' at last
and then maybe I could capture the output somehow, but that's a bit too
much hack. (I want things like concatenating various help informations,
like the help for all the String methods.)
Regards,
Csaba
···
On 2005-01-16, Ilmari Heikkinen <kig@misfiring.net> wrote:
The IHelp (Interactive Help) package provides contextual help for
objects and methods by using ri.
Thank you very much for trying it out! And if you find any problems, let me know, please.
···
On 18.1.2005, at 02:22, Gennady Bystritksy wrote:
I did not see any reaction to this announcement yet, so I will be the first one. It works great for me, being the best integration between irb and ri in my opinion. Much better than Python's docstrings ;-), again IMHO.
The nice thing about it is that you turn it on when you need it, no overhead otherwise.
De-compress archive and enter its top directory.
Then type:
($ su)
# ruby setup.rb
These simple step installs this program under the default
location of Ruby libraries. You can also install files into
your favorite directory by supplying setup.rb some options.
Try "ruby setup.rb --help".
If you think it makes the irb startup too slow, load it in a thread:
Thread.new{ require 'ihelp' }
But note that calling help will fail before it's completely loaded.
Sorry, but loading it in a separate thread doesn't work under windows (neither 0.1):
[snip]
Note that I have only
Thread.new { require 'ihelp' }
in .irbrc therefore 9 minutes should be enough to load, shouldn't they?
Yes it definitely should.
I don't know why it doesn't work, sorry
I wonder why it doesn't work... Guess I'll boot to windows tomorrow and find out.
Better not load it in a thread for the time being
Btw, which differences since 0.1 apart from setup?
Not much external changes, apart from working around that TypeError exception ri started raising in 1.8.2.
Now I have 0.3.0 candidate in the darcs repo, which separates the code more from the ri cmdline tool and has changable help renderers. I have a simple alternative handler there that opens the ruby-doc.org class doc in a web browser (on osx), it merely grabs the class name and puts it in the url, calls the osx `open`-cmd, and is around 5 lines of code.
···
On 18.1.2005, at 14:56, Piergiuliano Bossi wrote:
--
Ilmari Heikkinen (is going through version numbers way too fast)
and then maybe I could capture the output somehow, but that's a bit too
much hack. (I want things like concatenating various help informations,
like the help for all the String methods.)
Yes, I think it's possible.
Looked at what RI is doing, and it seems to me that this is the simplest way to go (if there are any RDoc gurus reading this, please tell if there's a better way.) And yes, it's a hack.
Under this platform, error is found by loadpath_manager in rubygems:
irb(main):001:0> "".help
NoMethodError: undefined method `help' for "":String
from (irb):1
from c:/apps/ruby18/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5
Please note that I have installed at least 1 gem (extensions).
As you can see error here is found by a different source:
irb(main):001:0> "".help
NoMethodError: undefined method `help' for "":String
from (irb):1
from c:/apps/ruby18/lib/ruby/1.8/yaml/rubytypes.rb:2
I don't know if it matters, though.
Thanks anyway, I like it.
Giuliano
Ilmari Heikkinen wrote:
···
On 18.1.2005, at 14:56, Piergiuliano Bossi wrote:
Ilmari Heikkinen wrote:
If you think it makes the irb startup too slow, load it in a thread:
Thread.new{ require 'ihelp' }
But note that calling help will fail before it's completely loaded.
Sorry, but loading it in a separate thread doesn't work under windows (neither 0.1):
[snip]
Note that I have only
Thread.new { require 'ihelp' }
in .irbrc therefore 9 minutes should be enough to load, shouldn't they?
Yes it definitely should.
I don't know why it doesn't work, sorry
I wonder why it doesn't work... Guess I'll boot to windows tomorrow and find out.
Better not load it in a thread for the time being
Btw, which differences since 0.1 apart from setup?
Not much external changes, apart from working around that TypeError exception ri started raising in 1.8.2.
Now I have 0.3.0 candidate in the darcs repo, which separates the code more from the ri cmdline tool and has changable help renderers. I have a simple alternative handler there that opens the ruby-doc.org class doc in a web browser (on osx), it merely grabs the class name and puts it in the url, calls the osx `open`-cmd, and is around 5 lines of code.
--
Ilmari Heikkinen (is going through version numbers way too fast)
--
If you want to send me an email address should be 'p', then a dot, followed by 'bossi' at 'quinary', another dot and 'com' at last