module BSON::Environment
Provides static helper methods around determining what environment is running without polluting the global namespace.
@since 2.0.0
Public Instance Methods
jruby?()
click to toggle source
Determine if we are using JRuby or not.
@example Are we running with JRuby?
Environment.jruby?
@return [ true, false ] If JRuby is our vm.
@since 2.0.0
# File lib/bson/environment.rb, line 32 def jruby? defined?(JRUBY_VERSION) end