Skip to content

Commit

Permalink
[Truffle] Rubinius::Type.const_get
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed May 9, 2015
1 parent eeddbc1 commit c557db0
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
Expand Up @@ -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
Expand Down

0 comments on commit c557db0

Please sign in to comment.