Sha256: c8b8a2750225d0ca1341e7b1b6d59d9e85e41c5a0abdf28c25eabe9f042feb8e
Contents?: true
Size: 480 Bytes
Versions: 3
Compression:
Stored size: 480 Bytes
Contents
# frozen_string_literal: true module CanaryLabs class Feature attr_reader :name, :description def initialize(name, desc, participation_resolver) @name = name @description = desc @participation_resolver = participation_resolver end def participating? identifier @participation_resolver.participating? identifier end def == other return false unless other.is_a? self.class other.name == self.name end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
canary_labs-0.4.0 | lib/feature.rb |
canary_labs-0.3.0 | lib/feature.rb |
canary_labs-0.2.0 | lib/feature.rb |