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

support custom implementation of BasicObject#inspect. #1342

Closed
wants to merge 6 commits into from

Conversation

0x1eef
Copy link
Contributor

@0x1eef 0x1eef commented Jan 12, 2015

If BasicObject or a subclass of BasicObject implements #inspect,
we will try to use its return value as output but if that fails,
we'll fallback on id.

fixes #1341

@0x1eef
Copy link
Contributor Author

0x1eef commented Jan 12, 2015

@rf- might as well leave this open for a while. i'll add some tests.

@0x1eef
Copy link
Contributor Author

0x1eef commented Jan 13, 2015

@rf- when you get the time, I added tests here: c838d2e
if you think that's enough, please merge. :-)

rpag added 5 commits January 13, 2015 19:44
If BasicObject or a subclass of BasicObject implements #inspect,
we will try to use its return value as output but if that fails,
we'll fallback on __id__.

fixes #1341
@rf-
Copy link
Member

rf- commented Jan 15, 2015

Looks good, thanks Rob.

@0x1eef
Copy link
Contributor Author

0x1eef commented Jan 15, 2015

@rf- No problem. It looks like you accepted but didn't click "merge", & I couldn't find the commits on master. i merged the branch and pushed to master for you.

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.

custom inspect on BasicObject subclass is ignored.
2 participants