def gate_for(thing)
      gates.detect { |gate| gate.protects?(thing) } || raise(GateNotFound, thing)
    end
def gate_for(thing)
      gates.detect { |gate| gate.protects?(thing) } || raise(GateNotFound, thing)
    end
Public: Find the gate that protects a thing.

 thing - The object for which you would like to find a gate

 Returns a Flipper::Gate.
 Raises Flipper::GateNotFound if no gate found for thing