Top Level Namespace
Defined Under Namespace
Modules: Switches
Instance Method Summary collapse
Instance Method Details
#Percentage(value) ⇒ Object
55 56 57 58 |
# File 'lib/switches/percentage.rb', line 55 def Percentage(value) return value if value.kind_of?(Switches::Percentage) Switches::Percentage.new(value) end |
#Switches {|configuration| ... } ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/switches.rb', line 23 def Switches configuration = Switches::Configuration.new yield configuration instance = Switches::Instance.new(configuration) instance.start end |