diff options
| author | nsfisis <nsfisis@gmail.com> | 2022-03-02 20:21:49 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2022-03-02 20:21:49 +0900 |
| commit | 80a0076402d1e6d6bde6c2f9fb78e1eb285ea500 (patch) | |
| tree | b46e0de2f3199d9d2afcc4fd28980ada94d64c31 /docs/posts/ruby-detect-running-implementation | |
| parent | 0ecfd8dbc7a798d8fa58219d84387b6b30d4a2f4 (diff) | |
| download | nsfisis.github.io-80a0076402d1e6d6bde6c2f9fb78e1eb285ea500.tar.gz nsfisis.github.io-80a0076402d1e6d6bde6c2f9fb78e1eb285ea500.tar.zst nsfisis.github.io-80a0076402d1e6d6bde6c2f9fb78e1eb285ea500.zip | |
enable hasCJKLanguage
Diffstat (limited to 'docs/posts/ruby-detect-running-implementation')
| -rw-r--r-- | docs/posts/ruby-detect-running-implementation/index.html | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/docs/posts/ruby-detect-running-implementation/index.html b/docs/posts/ruby-detect-running-implementation/index.html index 09d79aa..b2d700c 100644 --- a/docs/posts/ruby-detect-running-implementation/index.html +++ b/docs/posts/ruby-detect-running-implementation/index.html @@ -7,14 +7,7 @@ <title>[Ruby] 自身を実行している処理系の種類を判定する - REPL: Rest-Eat-Program Loop</title> - <meta name="description" content="この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/74d7ffeeebc51b20d791 - Ruby という言語には複数の実装があるが、それらをスクリプト上からどのようにして programmatically に見分ければよいだろうか。 -Object クラスに定義されている RUBY_ENGINE という定数がこの用途に使える。 -参考: Object::RUBY_ENGINE -上記ページの例から引用する: -$ ruby-1.9.1 -ve 'p RUBY_ENGINE' ruby 1.9.1p0 (2009-03-04 revision 22762) [x86_64-linux] "ruby" $ jruby -ve 'p RUBY_ENGINE' jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 9419) [i386-java] "jruby" それぞれの処理系がどのような値を返すかだが、stack overflow に良い質問と回答があった。 -What values for RUBY_ENGINE correspond to which Ruby implementations? より引用: - RUBY_ENGINE Implementation <undefined> MRI < 1."> + <meta name="description" content="この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/74d7ffeeebc51b20d791 Ruby という言語には複数の実装があるが、それらをスクリプト上からどのようにして programmatically に見分ければよいだろ"> <meta name="author" content=""> <link href="https://blog.nsfisis.dev/an-old-hope.min.css" rel="stylesheet"> |
