def enabled?(thing = nil)
      instrument(:enabled?) do |payload|
        values = gate_values
        thing = gate(:actor).wrap(thing) unless thing.nil?
        payload[:thing] = thing
        context = FeatureCheckContext.new(
          feature_name: @name,
          values: values,
          thing: thing
        )

        if open_gate = gates.detect { |gate| gate.open?(context) }
          payload[:gate_name] = open_gate.name
          true
        else
          false
        end
      end
    end
def enabled?(thing = nil)
      instrument(:enabled?) do |payload|
        values = gate_values
        thing = gate(:actor).wrap(thing) unless thing.nil?
        payload[:thing] = thing
        context = FeatureCheckContext.new(
          feature_name: @name,
          values: values,
          thing: thing
        )

        if open_gate = gates.detect { |gate| gate.open?(context) }
          payload[:gate_name] = open_gate.name
          true
        else
          false
        end
      end
    end
Public: Check if a feature is enabled for a thing.

 Returns true if enabled, false if not.