class CanaryLabs::Feature

Attributes

description[R]
name[R]

Public Class Methods

new(name, desc, participation_resolver) click to toggle source
# File lib/feature.rb, line 7
def initialize(name, desc, participation_resolver)
  @name = name
  @description = desc
  @participation_resolver = participation_resolver
end

Public Instance Methods

==(other) click to toggle source
# File lib/feature.rb, line 17
def == other
  return false unless other.is_a? self.class

  other.name == self.name
end
participating?(identifier) click to toggle source
# File lib/feature.rb, line 13
def participating? identifier
  @participation_resolver.participating? identifier
end