Skip to content

Commit

Permalink
[Truffle] Export some Truffle::Primitive methods in Truffle.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Mar 2, 2015
1 parent 824cd03 commit 0623029
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions truffle/src/main/ruby/core.rb
Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions truffle/src/main/ruby/core/truffle/truffle.rb
@@ -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.