Sha256: fc40e216b666bb487e1e77916c465bf700d47fd637f2c880e0606e4bce50b6e1
Contents?: true
Size: 548 Bytes
Versions: 1
Compression:
Stored size: 548 Bytes
Contents
module CanaryLabs class ExperimentRepo attr_reader :default_participation def initialize default_participation: true @betas = {} @default_participation = default_participation end def participating? beta_name, id b = @betas[beta_name] return @default_participation if b.nil? b.participating? id end def add name, desc, resolver @betas[name] = Feature.new name, desc, resolver end def find name @betas[name] end def all @betas.values end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
canary_labs-0.2.0 | lib/experiment_repo.rb |