Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test that define_singleton_method uses public
In CRuby this logic happens to always be public because the target class (the target object's singleton class) will almost never match the caller's scope. Pending CRuby confirming that this is the intended behavior and making it explicit so the caller's frame is never used for define_singleton_method visibility.
- Loading branch information