Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make find-method compatible with BasicObject instances. #2288

Merged
merged 1 commit into from Oct 9, 2023

Conversation

andrehjr
Copy link
Member

@andrehjr andrehjr commented Oct 9, 2023

While traversing objects and classes we may hit special objects inside constants. i.e: BasicObject.

As BasicObject does not has defined methods such as is_a?. We need to handle this on alternatives ways, such as Pry::Method.singleton_class_of.

Fixes #2277

While traversing objects and classes we may hit special objects inside constants. i.e: BasicObject.

As BasicObject does not has defined methods such as `is_a?`. We need to handle this on alternatives ways, such as Pry::Method.singleton_class_of.
@andrehjr andrehjr merged commit 7406ee2 into pry:master Oct 9, 2023
18 of 19 checks passed
@andrehjr andrehjr deleted the fix-find-method-basic-object branch October 9, 2023 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

find-method fails inside Rails application (undefined method `is_a?' for #<BasicObject>)
1 participant