class Flagship::Features

Public Instance Methods

disabled() click to toggle source
# File lib/flagship/features.rb, line 16
def disabled
  self.class.new(select(&:disabled?))
end
enabled() click to toggle source
# File lib/flagship/features.rb, line 12
def enabled
  self.class.new(select(&:enabled?))
end
tagged(tags) click to toggle source
# File lib/flagship/features.rb, line 6
def tagged(tags)
  self.class.new(select{|feature| tags.all?{|tag, val| feature.tags[tag] == val}})
end
Also aliased as: tagged_all
tagged_all(tags)
Alias for: tagged
tagged_any(tags) click to toggle source
# File lib/flagship/features.rb, line 2
def tagged_any(tags)
  self.class.new(select{|feature| tags.any?{|tag, val| feature.tags[tag] == val}})
end