access_ruby_docs
📖 Accessing Ruby Docs with ri
​
You don’t need to leave IRB to check the documentation for a class or method. Just type ri
followed by the constant or method name:
irb(main):001:0> ri Array
This displays the RDoc documentation for Array
directly in your console.