Ruby RbConfig::CONFIG
PS C:\Users\Administrator> irb --simple-prompt -rrbconfig
# Ruby command-line tools
>> RbConfig::CONFIG["bindir"]
=> "C:/Ruby23-x64/bin"
# Ruby standard library
>> RbConfig::CONFIG["rubylibdir"]
=> "C:/Ruby23-x64/lib/ruby/2.3.0"
# Architecture-specific extensions and libraries (compiled, binary files)
>> RbConfig::CONFIG["archdir"]
=> "C:/Ruby23-x64/lib/ruby/2.3.0/x64-mingw32"
# Your own or third-party extensions and libraries (written in Ruby)
>> RbConfig::CONFIG["sitedir"]
=> "C:/Ruby23-x64/lib/ruby/site_ruby"
# Third-party extensions and libraries (written in Ruby)
>> RbConfig::CONFIG["vendordir"]
=> "C:/Ruby23-x64/lib/ruby/vendor_ruby"
Reference
《The Well-Grounded Rubyist, Second Edition》
(https://www.manning.com/books/the-well-grounded-rubyist-second-edition)
1.2. Anatomy of the Ruby installation
チャリチャリ
、、、、、∧_∧
、、.≡≡( ´・ω)
、、≡≡~( O┯O
、、≡ (☆)ヽ_/(★)
∧∧
(・ω・`)、 ≡≡
O┯Oc )~ ≡≡
(★)ι_/(☆) ≡
http://emoji.vis.ne.jp/3rinsha2.htm
这篇博客探讨了Ruby中的RbConfig::CONFIG模块,引用了《The Well-Grounded Rubyist, Second Edition》的内容,详细解析了Ruby安装的内部结构。"
113584067,10554013,Linux NFS 配置MySQL高可用及共享存储,"['Linux', 'NFS', '数据库', '高可用']
1563

被折叠的 条评论
为什么被折叠?



