Class: Oedipus::Comparison::Not
- Inherits:
-
Oedipus::Comparison
- Object
- Oedipus::Comparison
- Oedipus::Comparison::Not
- Defined in:
- lib/oedipus/comparison/not.rb
Overview
Negation comparison of value.
Instance Attribute Summary
Attributes inherited from Oedipus::Comparison
Instance Method Summary collapse
-
#initialize(v) ⇒ Not
constructor
A new instance of Not.
- #inverse ⇒ Object
- #to_sql ⇒ Object
Methods inherited from Oedipus::Comparison
Constructor Details
#initialize(v) ⇒ Not
Returns a new instance of Not.
13 14 15 |
# File 'lib/oedipus/comparison/not.rb', line 13 def initialize(v) super(Comparison.of(v)) end |
Instance Method Details
#inverse ⇒ Object
21 22 23 |
# File 'lib/oedipus/comparison/not.rb', line 21 def inverse v end |
#to_sql ⇒ Object
17 18 19 |
# File 'lib/oedipus/comparison/not.rb', line 17 def to_sql v.inverse.to_sql end |