Skip to content

Commit

Permalink
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions truffle/src/main/ruby/core/rubinius/common/main.rb
Original file line number Diff line number Diff line change
@@ -32,24 +32,21 @@ def include(*mods)
end
end

# Truffle: Do not define #public, #private in Ruby since they need
# to set the top-level frame visibility when called with no argument.
def public(*methods)
Rubinius.privately do
Object.public(*methods)
end

#def public(*methods)
# Rubinius.privately do
# Object.public(*methods)
# end
#
# Object
#end
Object
end

#def private(*methods)
# Rubinius.privately do
# Object.private(*methods)
# end
#
# Object
#end
def private(*methods)
Rubinius.privately do
Object.private(*methods)
end

Object
end

def define_method(*args, &block)
Rubinius.privately do

0 comments on commit cf88778

Please sign in to comment.