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.



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

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

  @color = color
end

Instance Method Details

#to_sObject



174
175
176
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 174

def to_s
  to_sentence(colorized_values)
end