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, *args, &block) ⇒ ColorizedList

Returns a new instance of ColorizedList.



171
172
173
174
175
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 171

def initialize(color, *args, &block)
  super(*args, &block)

  @color = color
end

Instance Method Details

#to_sObject



177
178
179
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 177

def to_s
  to_sentence(colorized_values)
end