class SuperDiff::RSpec::MatcherTextBuilders::Match
Attributes
expected_captures[R]
Public Class Methods
new(expected_captures:, **rest)
click to toggle source
Calls superclass method
SuperDiff::RSpec::MatcherTextBuilders::Base::new
# File lib/super_diff/rspec/matcher_text_builders/match.rb, line 5 def initialize(expected_captures:, **rest) super(**rest) @expected_captures = expected_captures end
Public Instance Methods
add_extra()
click to toggle source
# File lib/super_diff/rspec/matcher_text_builders/match.rb, line 10 def add_extra if expected_captures template.add_text "with captures " template.add_text_in_color :blue, description_of(expected_captures) end end