Sha256: 85829c05c944c15ead6d074f6b872d8b9d64281cc3cda56c8d542a7b793a7953
Contents?: true
Size: 565 Bytes
Versions: 56
Compression:
Stored size: 565 Bytes
Contents
module Lookbook module Features EXPERIMENTAL_FEATURES = [] def self.experimental_feature?(name) EXPERIMENTAL_FEATURES.include?(name.to_sym) end def self.enabled?(name) return true unless experimental_feature?(name) enabled.include?(name.to_sym) end def self.enabled if Lookbook.config.experimental_features == true EXPERIMENTAL_FEATURES elsif Lookbook.config.experimental_features.blank? [] else Lookbook.config.experimental_features.map(&:to_sym) end end end end
Version data entries
56 entries across 56 versions & 1 rubygems