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.



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

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

Instance Method Details

#to_sObject

Raises:

  • (NotImplementedError)


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

def to_s
  raise NotImplementedError, "#{self.class} must support #to_s"
end

#to_string_in_multiline_modeObject



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

def to_string_in_multiline_mode
  to_s
end

#to_string_in_singleline_modeObject



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

def to_string_in_singleline_mode
  to_s
end