Class: TestTube::Passer Private
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Evaluate an actual value passed in parameter.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(input, matcher:, negate:) ⇒ Passer
constructor
private
Class initializer.
Methods inherited from Base
Constructor Details
#initialize(input, matcher:, negate:) ⇒ Passer
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Class initializer.
15 16 17 18 19 20 |
# File 'lib/test_tube/passer.rb', line 15 def initialize(input, matcher:, negate:) super() @actual = input @got = negate ^ matcher.matches? { input } end |