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



90
91
92
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 90

def length
  to_string_in_singleline_mode.length
end

#to_string_in_multiline_modeObject

Raises:

  • (NotImplementedError)


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

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

#to_string_in_singleline_modeObject

Raises:

  • (NotImplementedError)


78
79
80
81
82
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 78

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