Skip to content

Conversation

@nevans
Copy link
Collaborator

@nevans nevans commented Nov 9, 2025

Viewing config objects in Irb was much to messy to easily inspect: it printed every attribute for each ancestor, and most of them would simply be the Net::IMAP::Config::AttrInheritance::INHERITED const, repeated over and over.

So, just like Config#inspect was improved by #546, this simplifies the pp output to make it more useful for inspection on the console.

Unlike Config#inspect, Config#pretty_print prints every config attribute, including attributes that have been defined by a named default config.

@nevans nevans force-pushed the config/pretty_print branch from bd3c74a to 85957ff Compare November 9, 2025 19:38
Viewing config objects in Irb was _much_ too messy to easily inspect: it
printed every attribute for each ancestor, and most of them would simply
be the Net::IMAP::Config::AttrInheritance::INHERITED const, repeated
over and over.

So, just like `Config#inspect` was improved by #546, this simplifies the
`Kernel#pp` output to make it more useful for inspection on the console.

Unlike `Config#inspect`, `Config#pretty_print` prints _every_ config
attribute, including attributes that have been defined by a named
default config.  Like `Config#inspect`, each attributes is printed only
once, nested in the config which assigned it.
@nevans nevans force-pushed the config/pretty_print branch from 85957ff to 2cc2acc Compare November 9, 2025 19:39
@nevans
Copy link
Collaborator Author

nevans commented Nov 9, 2025

@nevans nevans merged commit c60d4f7 into master Nov 9, 2025
25 of 32 checks passed
@nevans nevans deleted the config/pretty_print branch November 9, 2025 19:41
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