To get the system architecture in Ruby, you can use the RbConfig::CONFIG
constant, which provides configuration information about the Ruby installation, including the architecture.
main.rb68 chars3 lines
This code will output the system architecture of the Ruby installation, for example:
main.rb37 chars2 lines
gistlibby LogSnag