Module: BSON::Environment
Overview
Provides static helper methods around determining what environment is running without polluting the global namespace.
Instance Method Summary collapse
-
#jruby? ⇒ true, false
Determine if we are using JRuby or not.
Instance Method Details
#jruby? ⇒ true, false
Determine if we are using JRuby or not.
34 35 36 |
# File 'lib/bson/environment.rb', line 34 def jruby? @jruby ||= defined?(JRUBY_VERSION) end |