Skip to content

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.

@akr
Copy link
Contributor

akr commented Nov 17, 2022

It seems fine.

nobu added 2 commits February 22, 2024 01:39
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.
@nobu nobu merged commit 3fcf2d1 into ruby:master Feb 21, 2024
@nobu nobu deleted the extensible branch February 21, 2024 16:45
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.

2 participants