I’ve just released new version of magic/help - plugin for irb
providing more intuitive
documentation access by heavy use of reflection.
magic/help lets you ask for methods located anywhere in the class
hierarchy:
help “File.sync=” # returns documentation for IO#sync=
or even ask for help on arbitrary objects:
help { some_file_obj.sync = true }
help some_file_obj.method(:sync=)
Changes in the release include:
Correct handling of all cases where documentation and reflection
mismatched,
including Kernel# vs Object# (where methods were declared and where
documentation
claimed they were declared frequently mismatched), SomeClass.new (most
classes
do not override Class.new, but still provide documentation).
Improvements in handling private methods, methods from modules,
unloaded methods
from loaded classes (like Time without time.rb), and many more
Sad but true! But at least now if the Wiki isn’t selected it doesn’t
get created and spammed…
Speaking of which, if anyone has a RubyForge project and you’ve enabled
but are no longer using a Wiki, please go into the project admin pages
and disable it. You will reduce the entropy of the universe!
Thanks,
Tom
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.