lib/ustate/query/not_equals.rb in ustate-client-0.0.7 vs lib/ustate/query/not_equals.rb in ustate-client-0.0.8
- old
+ new
@@ -1,16 +1,9 @@
class UState::Query
class NotEquals < Node
- def initialize(field, value)
- @field = field
- @value = value
- end
+ include Binarity
def ===(state)
- state.send(@field) != @value
- end
-
- def inspect
- inspect_helper @field, @value
+ state.send(@a) != @b
end
end
end