Irb

· toad's blog


On this aurora laptop, a Fedora Universal Blue spin, I press Alt+d to read documentation within my irb session which is useful.

I cannot figure out how to view documentation within 'irb' on my other laptop. The other laptop is using nix package manager and everything else for I have done in ruby works the same except this useful feature =/

 1toad@aurora ~ [127]> ruby --version
 2ruby 3.3.6 (2024-11-05 revision 75015d4c1f) [x86_64-linux]
 3toad@aurora ~> rdoc --version
 46.6.3.1
 5toad@aurora ~> ri --version
 6ri 6.6.3.1
 7toad@aurora ~> irb --version
 8irb 1.13.1 (2024-05-05)
 9toad@aurora ~ [127]> irb
10irb(main):001> Integer
11               Integer  Press Alt+d to read the full document
12               InterruptInteger < Numeric
13
14                        (from ruby core)
15                        ----------------------------------------
16
17
18                        An Integer object represents an integer
19                        value.
20
21                        You can create an Integer object