Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #633 from kachick/implement-kernel-__callee__
Implement Kernel#__callee__
- Loading branch information
Showing
2 changed files
with
1 addition
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,9 +1,6 @@ | |||
fails:Kernel.__callee__ returns the current method, even when aliased | |||
fails:Kernel.__callee__ returns the original name when aliased method | |||
fails:Kernel.__callee__ returns the caller from blocks too | fails:Kernel.__callee__ returns the caller from blocks too | ||
fails:Kernel.__callee__ returns the caller from define_method too | fails:Kernel.__callee__ returns the caller from define_method too | ||
fails:Kernel.__callee__ returns the caller from block inside define_method too | fails:Kernel.__callee__ returns the caller from block inside define_method too | ||
fails:Kernel.__callee__ returns the caller from a define_method called from the same class | fails:Kernel.__callee__ returns the caller from a define_method called from the same class | ||
fails:Kernel.__callee__ returns method name even from eval | fails:Kernel.__callee__ returns method name even from eval | ||
fails:Kernel.__callee__ returns nil when not called from a method | fails:Kernel.__callee__ returns nil when not called from a method | ||
fails:Kernel.__callee__ returns the caller when sent as a string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters