Skip to content

Commit

Permalink
Add SuperDiff::Configuration#color_enabled=
Browse files Browse the repository at this point in the history
  • Loading branch information
knu committed Jun 12, 2021
1 parent 59d37d2 commit 1fd3f93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@ end
See [eight_bit_color.rb](lib/super_diff/csi/eight_bit_color.rb)
for the list of available colors.

You can also completely disable colorized output.

``` ruby
SuperDiff.configure do |config|
config.color_enabled = false
end
```

### Diffing custom objects

If you are comparing two data structures
Expand Down
1 change: 1 addition & 0 deletions lib/super_diff/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Configuration
attr_accessor(
:actual_color,
:border_color,
:color_enabled,
:diff_elision_enabled,
:diff_elision_maximum,
:elision_marker_color,
Expand Down

0 comments on commit 1fd3f93

Please sign in to comment.