Class: SuperDiff::RSpec::MatcherTextTemplate::Text
- Inherits:
-
Base
- Object
- Base
- SuperDiff::RSpec::MatcherTextTemplate::Text
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.
96
97
98
99
|
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 96
def initialize(immediate_value = nil, &block)
@immediate_value = immediate_value
@block = block
end
|
Instance Method Details
#to_s ⇒ Object
109
110
111
|
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 109
def to_s
raise NotImplementedError.new("#{self.class} must support #to_s")
end
|
#to_string_in_multiline_mode ⇒ Object
105
106
107
|
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 105
def to_string_in_multiline_mode
to_s
end
|
#to_string_in_singleline_mode ⇒ Object
101
102
103
|
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 101
def to_string_in_singleline_mode
to_s
end
|