Sha256: feb113eee6e0926006f774bd07a44ede9f0b320738e1064fdec26abd4b4b1b19
Contents?: true
Size: 369 Bytes
Versions: 41
Compression:
Stored size: 369 Bytes
Contents
# Simple class for turning a flipper_id into an actor that can be based # to Flipper::Feature#enabled?. module Flipper class Actor attr_reader :flipper_id def initialize(flipper_id) @flipper_id = flipper_id end def eql?(other) self.class.eql?(other.class) && @flipper_id == other.flipper_id end alias_method :==, :eql? end end
Version data entries
41 entries across 41 versions & 1 rubygems