aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/posts/ruby-detect-running-implementation
diff options
context:
space:
mode:
Diffstat (limited to 'docs/posts/ruby-detect-running-implementation')
-rw-r--r--docs/posts/ruby-detect-running-implementation/index.html9
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 &#39;p RUBY_ENGINE&#39; ruby 1.9.1p0 (2009-03-04 revision 22762) [x86_64-linux] &quot;ruby&quot; $ jruby -ve &#39;p RUBY_ENGINE&#39; jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 9419) [i386-java] &quot;jruby&quot; それぞれの処理系がどのような値を返すかだが、stack overflow に良い質問と回答があった。
-What values for RUBY_ENGINE correspond to which Ruby implementations? より引用:
- RUBY_ENGINE Implementation &lt;undefined&gt; MRI &lt; 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">