Sha256: ac9f490c080b881b52fdb91b1b08ac9f2a0c31a21496b041f3a953b38527944a

Contents?: true

Size: 571 Bytes

Versions: 7

Compression:

Stored size: 571 Bytes

Contents

require 'flip_fab/contextual_feature'
require 'flip_fab/features_by_name'
require 'flip_fab/feature'
require 'flip_fab/helper'
require 'flip_fab/persistence'
require 'flip_fab/cookie_persistence'

module FlipFab
  attr_reader :features

  def define_feature(name, options = {})
    @features ||= {}
    @features[name] = Feature.new name, options
  end

  @features ||= FeaturesByName.new

  module_function :features, :define_feature
end

if defined?(ActionController)
  ActionController::Base.include FlipFab::Helper
  ActionController::Base.helper FlipFab::Helper
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
flip_fab-1.1.21 lib/flip_fab.rb
flip_fab-1.1.20 lib/flip_fab.rb
flip_fab-1.1.19 lib/flip_fab.rb
flip_fab-1.1.18 lib/flip_fab.rb
flip_fab-1.0.18 lib/flip_fab.rb
flip_fab-1.0.17 lib/flip_fab.rb
flip_fab-1.0.16 lib/flip_fab.rb