Module: Assertion::DSL::Inversion
- Included in:
- Base
- Defined in:
- lib/assertion/dsl/inversion.rb
Overview
Allows to provide inverter for objects of the current class
Instance Method Summary collapse
-
#not ⇒ Assertion::Inverter
Initializes the intermediate inverter with ‘new` and `[]` methods.
Instance Method Details
#not ⇒ Assertion::Inverter
Initializes the intermediate inverter with ‘new` and `[]` methods
The inverter can be used to initialize the assertion, that describes just the opposite statement to the current one
28 29 30 |
# File 'lib/assertion/dsl/inversion.rb', line 28 def not Inverter.new(self) end |