Skip to content

Commit

Permalink
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions truffle/src/main/ruby/core.rb
Original file line number Diff line number Diff line change
@@ -86,6 +86,7 @@
require_relative 'core/shims'

# Load JRuby+Truffle specific classes
require_relative 'core/truffle/truffle'
require_relative 'core/truffle/debug'

# Start running Ruby code outside classes
23 changes: 23 additions & 0 deletions truffle/src/main/ruby/core/truffle/truffle.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright (c) 2015 Oracle and/or its affiliates. All rights reserved. This
# code is released under a tri EPL/GPL/LGPL license. You can use it,
# redistribute it and/or modify it under the terms of the:
#
# Eclipse Public License version 1.0
# GNU General Public License version 2
# GNU Lesser General Public License version 2.1

module Truffle

def self.version
Primitive.version
end

def self.graal?
Primitive.graal?
end

def self.substrate?
Primitive.substrate?
end

end

0 comments on commit 0623029

Please sign in to comment.