Class: SuperDiff::RSpec::MatcherTextTemplate::Text

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

Instance Method Summary collapse

Methods inherited from Base

#length

Constructor Details

#initialize(immediate_value = nil, &block) ⇒ Text

Returns a new instance of Text.



93
94
95
96
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 93

def initialize(immediate_value = nil, &block)
  @immediate_value = immediate_value
  @block = block
end

Instance Method Details

#to_sObject

Raises:

  • (NotImplementedError)


106
107
108
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 106

def to_s
  raise NotImplementedError.new("#{self.class} must support #to_s")
end

#to_string_in_multiline_modeObject



102
103
104
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 102

def to_string_in_multiline_mode
  to_s
end

#to_string_in_singleline_modeObject



98
99
100
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 98

def to_string_in_singleline_mode
  to_s
end