From f7ae224f3e2530bb4b05166b6013f8a42432086e Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 20 Mar 2023 22:03:50 +0900 Subject: feat(nuldoc): rename simpara to para See also: https://tdg.docbook.org/tdg/sdocbook/5.1/para.html --- .../ruby-detect-running-implementation.xml | 44 +++++++++++----------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'content/posts/2021-10-02/ruby-detect-running-implementation.xml') diff --git a/content/posts/2021-10-02/ruby-detect-running-implementation.xml b/content/posts/2021-10-02/ruby-detect-running-implementation.xml index 18548c2..9b59202 100644 --- a/content/posts/2021-10-02/ruby-detect-running-implementation.xml +++ b/content/posts/2021-10-02/ruby-detect-running-implementation.xml @@ -15,29 +15,29 @@ - + この記事は Qiita から移植してきたものです。 元 URL: https://qiita.com/nsfisis/items/74d7ffeeebc51b20d791 - - + +
-
- + + Ruby という言語には複数の実装があるが、それらをスクリプト上からどのようにして programmatically に見分ければよいだろうか。 - - + + Object クラスに定義されている RUBY_ENGINE という定数がこの用途に使える。 - - + + 参考: Object::RUBY_ENGINE - - + + 上記ページの例から引用する: - + - + それぞれの処理系がどのような値を返すかだが、stack overflow に良い質問と回答があった。 - - + + What values for RUBY_ENGINE correspond to which Ruby implementations? より引用: - +
@@ -100,20 +100,20 @@
- + なお、この質問・回答は 2014年になされたものであり、値は変わっている可能性がある。MRI (aka CRuby) については執筆時現在 (2020/12/8) も 'ruby' が返ってくることを確認済み。 - - + + この表にない主要な処理系として、https://mruby.org[mruby] は 'mruby' を返す。 - - + + mruby 該当部分のソース より引用: - +