-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow customisation of the prompt objects
Fix issue pry#885 (Add an API for extending Pry.view_clip) [1] pry(main)> class Barbie | def inspect | 'You can brush my hair, undress me everywhere!' | end | end => nil [2] pry(main)> [3] pry(main)> Pry.config.prompt_safe_objects << Barbie => [String, Numeric, Symbol, nil, true, false, Barbie] [4] pry(main)> cd Barbie.new [5] pry(You can brush my hair, undress me everywhere!):1>
- Loading branch information
Showing
4 changed files
with
26 additions
and
3 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
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