rubycommand-linemanuals

Manual pages for Ruby functions from command line


Is there a way to get at the manuals of Ruby functions from the command line?

Like the ?func man pages in R.


Solution

  • The ri tool might help here.

    ri Array  
    ri Array.sort  
    ri Hash#each  
    ri Math::sqrt