Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions truffle/src/main/ruby/core/type.rb
Original file line number Diff line number Diff line change
@@ -9,6 +9,11 @@
module Rubinius
module Type

def self.const_get(mod, name, inherit=true, resolve=true)
raise "unsupported" unless resolve
mod.const_get name, inherit
end

def self.const_exists?(mod, name, inherit = true)
mod.const_defined? name, inherit
end

0 comments on commit c557db0

Please sign in to comment.