class Feature::Operation::Not
Public Class Methods
call(entity, attr_name, expected)
click to toggle source
# File lib/toggles/feature/operation/not.rb, line 4 def self.call(entity, attr_name, expected) if expected.kind_of? Hash expected.none? do |operation, value| OPERATIONS[operation.to_sym].call(entity, attr_name, value) end else entity.send(attr_name) != expected end end