-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add `Colorize::ColorizableIO#colorize_when` with block version. - Add `Colorize::IOExtension#to_colorizable` with policy version. - Revert `Colorize::StyleBuilder#toggle` for back compatiblity. - Add doc-comment more. - Add tests for them. - More and more... Breaking changes in this pull request: - Remove `inspect` for `Colorize::Object`, because it complicates to debug `Colorize::Object` itself. And, we can simply replace `with_color.surround { |io| obj.inspect io }` in many case. - Change `Colorize::Style#surround` semantics a bit (It is same as old `Colorize::Object#surround`.) Its name makes more sense. `push` is just internal thing, and it is not important for users. Only!
- Loading branch information
1 parent
eb9679b
commit d987041
Showing
11 changed files
with
216 additions
and
73 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
Oops, something went wrong.