Skip to content

Commit

Permalink
[Truffle] Move #singleton_method_{added,removed,undefined} from Kerne…
Browse files Browse the repository at this point in the history
…l to BasicObject.
eregon committed Mar 1, 2016

Verified

This commit was signed with the committer’s verified signature.
makenowjust Hiroya Fujinami
1 parent 9bda28a commit ad317a3
Showing 5 changed files with 12 additions and 15 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
fails:BasicObject#singleton_method_removed is a private method
fails:BasicObject#singleton_method_removed is called when a method is removed on self
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
fails:BasicObject#singleton_method_undefined is a private method
fails:BasicObject#singleton_method_undefined is called when a method is removed on self
12 changes: 12 additions & 0 deletions truffle/src/main/ruby/core/rubinius/bootstrap/basic_object.rb
Original file line number Diff line number Diff line change
@@ -31,4 +31,16 @@ def __id__
Rubinius.primitive :object_id
raise ::PrimitiveFailure, "BasicObject#__id__ primitive failed"
end

def singleton_method_added(name)
end
private :singleton_method_added

def singleton_method_removed(name)
end
private :singleton_method_removed

def singleton_method_undefined(name)
end
private :singleton_method_undefined
end
12 changes: 0 additions & 12 deletions truffle/src/main/ruby/core/rubinius/common/kernel.rb
Original file line number Diff line number Diff line change
@@ -889,18 +889,6 @@ def trap(sig, prc=nil, &block)
end
module_function :trap

def singleton_method_added(name)
end
private :singleton_method_added

def singleton_method_removed(name)
end
private :singleton_method_removed

def singleton_method_undefined(name)
end
private :singleton_method_undefined

def singleton_methods(all=true)
m = Rubinius::Type.object_singleton_class self
mt = m.method_table

0 comments on commit ad317a3

Please sign in to comment.