Module: SimpleSwitch

Defined in:
lib/simple_switch.rb,
lib/simple_switch/switch.rb,
lib/simple_switch/version.rb,
lib/simple_switch/shared_methods.rb,
lib/simple_switch/active_record/base.rb,
lib/simple_switch/action_controller/base.rb,
lib/simple_switch/shared_controller_methods.rb,
lib/generators/simple_switch/install_generator.rb,
lib/generators/simple_switch/install_yaml_generator.rb

Defined Under Namespace

Modules: Generators, SharedControllerMethods, SharedMethods Classes: Engine, Switch

Constant Summary collapse

VERSION =
'0.1.0'
@@feature_config_file_name =
'feature_config.yml'

Class Method Summary collapse

Class Method Details

.feature_managerObject



14
15
16
# File 'lib/simple_switch.rb', line 14

def self.feature_manager
  SimpleSwitch::Switch.instance
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (SimpleSwitch)

    the object that the method was called on



10
11
12
# File 'lib/simple_switch.rb', line 10

def self.setup
  yield self
end