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



87
88
89
# File 'lib/super_diff/rspec/matcher_text_template.rb', line 87

def length
  to_string_in_singleline_mode.length
end

#to_string_in_multiline_modeObject

Raises:

  • (NotImplementedError)


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

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)


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

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