Basic formula: RbConfig:: CONFIG[“term”].
Below outlines the terms and the directories they refer to.
|rubylibdir||Ruby standard library|
|bindir||Ruby command-line tools|
|archdir||Architecture-specific extensions and libraries (compiled, binary files)|
|sitedir||Your own or third-party extensions and libraries (written in Ruby)|
|vendordir||Third-party extensions and libraries (written in Ruby)|
|sitelibdir||Your own Ruby language extensions (written in Ruby)|
|sitearchdir||Your own Ruby language extensions (written in C)|
$ irb --simple-prompt -r rbconfig