aboutsummaryrefslogtreecommitdiffhomepage
path: root/public/posts/2021-10-02/ruby-detect-running-implementation
diff options
context:
space:
mode:
Diffstat (limited to 'public/posts/2021-10-02/ruby-detect-running-implementation')
-rw-r--r--public/posts/2021-10-02/ruby-detect-running-implementation/index.html12
1 files changed, 4 insertions, 8 deletions
diff --git a/public/posts/2021-10-02/ruby-detect-running-implementation/index.html b/public/posts/2021-10-02/ruby-detect-running-implementation/index.html
index ed7ccd5..1163674 100644
--- a/public/posts/2021-10-02/ruby-detect-running-implementation/index.html
+++ b/public/posts/2021-10-02/ruby-detect-running-implementation/index.html
@@ -65,14 +65,12 @@
上記ページの例から引用する:
</p>
- <pre class="highlight" language="shell-session" linenumbering="unnumbered">
- <code>$ ruby-1.9.1 -ve &apos;p RUBY_ENGINE&apos;
+ <pre class="highlight" language="shell-session" linenumbering="unnumbered"><code>$ ruby-1.9.1 -ve &apos;p RUBY_ENGINE&apos;
ruby 1.9.1p0 (2009-03-04 revision 22762) [x86_64-linux]
&quot;ruby&quot;
$ jruby -ve &apos;p RUBY_ENGINE&apos;
jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 9419) [i386-java]
-&quot;jruby&quot;</code>
- </pre>
+&quot;jruby&quot;</code></pre>
<p>
それぞれの処理系がどのような値を返すかだが、stack overflow に良い質問と回答があった。
@@ -192,12 +190,10 @@ jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 9419) [i386-java]
<a href="https://github.com/mruby/mruby/blob/ed29d74bfd95362eaeb946fcf7e865d80346b62b/include/mruby/version.h#L32-L35">mruby 該当部分のソース</a>より引用:
</p>
- <pre class="highlight" language="c" linenumbering="unnumbered">
- <code>/*
+ <pre class="highlight" language="c" linenumbering="unnumbered"><code>/*
* Ruby engine.
*/
-#define MRUBY_RUBY_ENGINE &quot;mruby&quot;</code>
- </pre>
+#define MRUBY_RUBY_ENGINE &quot;mruby&quot;</code></pre>
</div>
</article>
</main>