I guess I don't understand why you (Love U Ruby) want to go through so
much trouble to avoid going and looking at the documentation for the
gems. Although, given that so many of of your posts (Even when you had
your old name of "Arup Rakshit") have suggested that other people do the
reading for you, I guess it makes sense.
The code provided by Justin Collins would give you all of the methods
for instances of the current Objects that are in memory (in that
instance of the ruby vm). This should give you what you're looking for,
even for the Gems (assuming the object you're working with/looking for
has been instantiated). I'm still 100% sure that you will have better
luck looking at the documentation for the gems, they will be more
complete and help you better than just looking at output in irb.
-Ryan
ยทยทยท
On 2/5/13 4:29 PM, Hans Mackowiak wrote:
run gem server in your shell, then access localhost:8880
pick the gem: for sample "nokogiri 1.5.6 [rdoc]" klick on [rdoc]
and you get an list of classes and methods this one gem installs
inside irb its more comlicated
you could try:
l = ObjectSpace.each_object(Class).to_a
require "nokogiri"
ObjectSpace.each_object(Class).to_a - l
but it also show classes required by nokogiri
you still react like some that is to lazy to google .. (and this is not
your first thread where it looks like that)