class TestTube::Passer
Evaluate an actual value passed in parameter.
@api private
Public Class Methods
new(input, matcher:, negate:)
click to toggle source
Class initializer.
@param input [#object_id] The actual value to test. @param matcher [#matches?] A matcher. @param negate [Boolean] Invert the matcher or not.
Calls superclass method
# File lib/test_tube/passer.rb, line 15 def initialize(input, matcher:, negate:) super() @actual = input @got = negate ^ matcher.matches? { input } end