From: Brian Candler Date: 2008-12-11T20:07:10+09:00 Subject: Re: to get help from inside irb console Sijo Kg wrote: > For that what I did is > require 'openssl' > irb_help OpenSSL::Random.random_bytes Interesting, irb_help is new to me. > But this gives me error ArgumentError: wrong number of arguments (0 for > 1) That is because what you're really doing there is irb_help(OpenSSL::Random.random_bytes()) That is, you're calling the function OpenSSL::Random.random_bytes, which requires an argument that you're not providing. That's where the error is raised. So you need to quote the text: irb_help "OpenSSL::Random.random_bytes" However as I said already, there's no help for this built into ruby/ri/rdoc. irb(main):013:0> irb_help "OpenSSL::Random" Nothing known about OpenSSL::Random If you're passing a class, you don't need to quote it, because the class object itself is passed and irb_help converts it to the classname: irb(main):014:0> irb_help String ... shows info about String -- Posted via http://www.ruby-forum.com/.