Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #674 from krekoten/module_method_hooks
Module method_* hooks
- Loading branch information
Showing
with
46 additions
and 10 deletions.
- +1 −0 spec/tags/core/basicobject/method_missing_tags.txt
- +0 −3 spec/tags/core/basicobject/singleton_method_added_tags.txt
- +0 −1 spec/tags/core/basicobject/singleton_method_undefined_tags.txt
- +4 −0 spec/tags/core/kernel/method_missing_tags.txt
- +0 −2 spec/tags/core/module/method_added_tags.txt
- +0 −2 spec/tags/core/module/method_undefined_tags.txt
- +13 −0 topaz/objects/classobject.py
- +21 −2 topaz/objects/moduleobject.py
- +7 −0 topaz/objects/objectobject.py
@@ -1 +1,2 @@ | ||
fails:BasicObject#method_missing is a private method | ||
fails:BasicObject#method_missing for a Class raises a NoMethodError when an undefined method is called |
@@ -1,4 +1 @@ | ||
fails:BasicObject#singleton_method_added is a private method | ||
fails:BasicObject#singleton_method_added is called when a method is defined on self | ||
fails:BasicObject#singleton_method_added is called when a method is defined in the singleton class | ||
fails:BasicObject#singleton_method_added is called when define_method is used in the singleton class |
@@ -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 |
@@ -1,3 +1 @@ | ||
fails:Module#method_added is a private instance method | ||
fails:Module#method_added returns nil in the default implementation | ||
fails:Module#method_added is called when a new method is defined in self |
@@ -1,3 +1 @@ | ||
fails:Module#method_undefined is a private instance method | ||
fails:Module#method_undefined returns nil in the default implementation | ||
fails:Module#method_undefined is called when a method is undefined from self |