作者热门文章
- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
我所知道的在运行时检测 Ruby 实现(例如 MRI、JRuby、Rubinius 等)的方法是检查全局常量 RUBY_ENGINE
:
$ ruby -e 'puts RUBY_ENGINE'
ruby
什么是已知 Ruby 实现及其对应的 RUBY_ENGINE 值的合理全面列表?
最佳答案
这是我目前发现的:
| RUBY_ENGINE | Implementation |
|:-----------:|:------------------|
| <undefined> | MRI < 1.9 |
| 'ruby' | MRI >= 1.9 or REE |
| 'jruby' | JRuby |
| 'macruby' | MacRuby |
| 'rbx' | Rubinius |
| 'maglev' | MagLev |
| 'ironruby' | IronRuby |
| 'cardinal' | Cardinal |
上述 Ruby 实现的链接:
支持宇治久 this blog entry哪个有最多的值(value)。其他的是通过阅读找到的this和 this .从 StackOverflow 上的其他答案中收集了更多的值。为所有做出贡献的人提供更多 Prop !
关于ruby - RUBY_ENGINE 的哪些值对应于哪些 Ruby 实现?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9894168/
我所知道的在运行时检测 Ruby 实现(例如 MRI、JRuby、Rubinius 等)的方法是检查全局常量 RUBY_ENGINE: $ ruby -e 'puts RUBY_ENGINE' rub
我有一个包含以下内容的 Rakefile: Jeweler::Tasks.new do |gem| # ... gem.add_dependency('json') end 此生成的 gems
我是一名优秀的程序员,十分优秀!