Class: SuperDiff::RSpec::MatcherTextTemplate::ColorizedList

Inherits:
Text
  • Object
show all
Defined in:
lib/super_diff/rspec/matcher_text_template.rb

Instance Method Summary collapse

Methods inherited from Text

#to_string_in_multiline_mode, #to_string_in_singleline_mode

Methods inherited from Base

#length, #to_string_in_multiline_mode, #to_string_in_singleline_mode

Constructor Details

#initialize(color) ⇒ ColorizedList

Returns a new instance of ColorizedList.



163
164
165
166
167
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 163

def initialize(color, ...)
  super(...)

  @color = color
end

Instance Method Details

#to_sObject



169
170
171
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 169

def to_s
  to_sentence(colorized_values)
end