Module: Commander::Platform

Defined in:
lib/commander/platform.rb

Overview

Platform

Small helpers for detecting the running Ruby engine.

Class Method Summary collapse

Class Method Details

.jruby?Boolean

Whether the current process is running under JRuby.

Returns:

  • (Boolean)


11
12
13
# File 'lib/commander/platform.rb', line 11

def self.jruby?
  defined?(RUBY_ENGINE) && (RUBY_ENGINE == 'jruby')
end