class Object

Public Instance Methods

Percentage(value) click to toggle source
# 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| ... } click to toggle source
# File lib/switches.rb, line 23
def Switches
  configuration = Switches::Configuration.new
  yield configuration

  instance = Switches::Instance.new(configuration)
  instance.start
end