Module: Commander::Platform
- Defined in:
- lib/commander/platform.rb
Overview
Platform
Small helpers for detecting the running Ruby engine.
Class Method Summary collapse
-
.jruby? ⇒ Boolean
Whether the current process is running under JRuby.
Class Method Details
.jruby? ⇒ Boolean
Whether the current process is running under JRuby.
11 12 13 |
# File 'lib/commander/platform.rb', line 11 def self.jruby? defined?(RUBY_ENGINE) && (RUBY_ENGINE == 'jruby') end |