We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e61ea5 commit 36ee24dCopy full SHA for 36ee24d
lib/rspec/core/configuration.rb
@@ -695,7 +695,9 @@ def full_backtrace=(true_or_false)
695
#
696
# @see color_enabled?
697
# @return [Boolean]
698
- attr_writer :color
+ def color
699
+ value_for(:color) { @color }
700
+ end
701
702
# Check if color is enabled for a particular output.
703
# @param output [IO] an output stream to use, defaults to the current
@@ -706,11 +708,7 @@ def color_enabled?(output=output_stream)
706
708
end
707
709
710
# Toggle output color.
- # @attr true_or_false [Boolean] toggle color enabled
- def color=(true_or_false)
711
- return unless true_or_false
712
- @color = !!true_or_false
713
- end
+ attr_writer :color
714
715
# @private
716
def libs=(libs)
0 commit comments