Class: SuperDiff::RSpec::MatcherTextTemplate::Base

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

Direct Known Subclasses

Break, Text

Instance Method Summary collapse

Instance Method Details

#lengthObject



85
86
87
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 85

def length
  to_string_in_singleline_mode.length
end

#to_string_in_multiline_modeObject

Raises:

  • (NotImplementedError)


81
82
83
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 81

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

#to_string_in_singleline_modeObject

Raises:

  • (NotImplementedError)


77
78
79
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 77

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