Module: FlipFab
- Defined in:
- lib/flip_fab.rb,
lib/flip_fab/helper.rb,
lib/flip_fab/feature.rb,
lib/flip_fab/version.rb,
lib/flip_fab/persistence.rb,
lib/flip_fab/features_by_name.rb,
lib/flip_fab/contextual_feature.rb,
lib/flip_fab/cookie_persistence.rb
Defined Under Namespace
Modules: Helper Classes: ContextualFeature, CookiePersistence, Feature, FeaturesByName, Persistence
Constant Summary collapse
- VERSION =
SB-specific versioning “algorithm” to accommodate BNW/Jenkins/gemstash
(pre = ENV.fetch('GEM_PRE_RELEASE', '')).empty? ? base : "#{base}.#{pre}"
Class Method Summary collapse
- .define_feature(name, options = {}) ⇒ Object
-
.features ⇒ Object
Returns the value of attribute features.
Class Method Details
.define_feature(name, options = {}) ⇒ Object
11 12 13 14 |
# File 'lib/flip_fab.rb', line 11 def define_feature(name, = {}) @features ||= {} @features[name] = Feature.new name, end |
.features ⇒ Object
Returns the value of attribute features.
9 10 11 |
# File 'lib/flip_fab.rb', line 9 def features @features end |