Class: Filterparams::Not
- Inherits:
-
Object
- Object
- Filterparams::Not
- Defined in:
- lib/filterparams/obj/not.rb
Instance Attribute Summary collapse
-
#inner ⇒ Object
Returns the value of attribute inner.
Instance Method Summary collapse
- #equal?(other) ⇒ Boolean
-
#initialize(inner) ⇒ Not
constructor
A new instance of Not.
Constructor Details
#initialize(inner) ⇒ Not
Returns a new instance of Not.
5 6 7 |
# File 'lib/filterparams/obj/not.rb', line 5 def initialize(inner) self.inner = inner end |
Instance Attribute Details
#inner ⇒ Object
Returns the value of attribute inner.
3 4 5 |
# File 'lib/filterparams/obj/not.rb', line 3 def inner @inner end |
Instance Method Details
#equal?(other) ⇒ Boolean
9 10 11 |
# File 'lib/filterparams/obj/not.rb', line 9 def equal?(other) other.is_a?(Filterparams::Not) && other.inner == inner end |