-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add pretty print support This adds the `pretty_print` method, which pretty prints the same information as the `inspect` method. This is meant to be called by the default 'pp' gem, e.g. by calling `pp(person)` or `person.pretty_inspect`. The specs are an almost identical to the specs for the `inspect` method to ensure the same information is included. * Simplify code with if modifier Co-authored-by: Jamis Buck <[email protected]> * Avoid "default gem" terminology Co-authored-by: Jamis Buck <[email protected]> --------- Co-authored-by: Jamis Buck <[email protected]> Co-authored-by: Jamis Buck <[email protected]>
- Loading branch information
1 parent
a35d481
commit ff4c317
Showing
2 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters