Class: UState::Query::NotEquals
- Inherits:
-
Object
- Object
- UState::Query::NotEquals
- Defined in:
- lib/ustate/query/not_equals.rb
Instance Method Summary collapse
- #===(state) ⇒ Object
-
#initialize(field, value) ⇒ NotEquals
constructor
A new instance of NotEquals.
Constructor Details
#initialize(field, value) ⇒ NotEquals
Returns a new instance of NotEquals.
3 4 5 6 |
# File 'lib/ustate/query/not_equals.rb', line 3 def initialize(field, value) @field = field @value = value end |
Instance Method Details
#===(state) ⇒ Object
8 9 10 |
# File 'lib/ustate/query/not_equals.rb', line 8 def ===(state) state.send(@field) != @value end |