Module: Ruboto

Defined in:
lib/ruboto.rb,
lib/ruboto/api.rb,
lib/ruboto/util/build.rb,
lib/ruboto/util/update.rb,
lib/ruboto/util/verify.rb,
lib/ruboto/commands/base.rb,
lib/ruboto/util/log_action.rb,
lib/ruboto/util/objectspace.rb,
lib/ruboto/util/scan_in_api.rb,
lib/ruboto/util/xml_element.rb,
lib/ruboto/util/asset_copier.rb,
lib/ruboto/util/code_formatting.rb

Defined Under Namespace

Modules: API, Commands, Util

Constant Summary collapse

GEM_ROOT =
File.dirname(File.dirname(__FILE__))
ASSETS =
File.join(GEM_ROOT, "assets")

Class Method Summary collapse

Class Method Details

.enable_objectspaceObject

Enable ObjectSpace if running in JRuby, for the “main” lib



3
4
5
6
7
# File 'lib/ruboto/util/objectspace.rb', line 3

def self.enable_objectspace
  require 'jruby'
  JRuby.objectspace = true
rescue LoadError
end