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 PP more extensible #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Make PP more extensible #3

wants to merge 2 commits into from

Conversation

nobu
Copy link
Member

@nobu nobu commented Sep 5, 2021

Since PP.pp hardcodes PP to call its class method, pp method in inherited classes also uses PP instance instead of its owner class.
That means such class has to implement its own pp, or copy from PP.
The first commit in this PR makes this binding loose, and helps to implement such classes.

So that the `pp` method can work in inherited classes with that
class.
The method which prints single pair of a hash, to make extending
pretty printing Hash easier, apart from Hash construct itself.
@akr
Copy link
Contributor

akr commented Nov 17, 2022

It seems fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants