module Simplewoo::Configuration

Constants

VALID_OPTIONS_KEYS

TODO try to remove redis

Public Instance Methods

configure() { |self| ... } click to toggle source
# File lib/simplewoo/configuration.rb, line 19
def configure
  yield self
end
options() click to toggle source
# File lib/simplewoo/configuration.rb, line 23
def options
  VALID_OPTIONS_KEYS.inject({}){|o,k| o.merge!(k => send(k)) }
end
reset!() click to toggle source
# File lib/simplewoo/configuration.rb, line 27
def reset!
  VALID_OPTIONS_KEYS.each {|key| class_eval(%Q{key = nil}) }
  self.trusted = "false"
  self.ssl = true
  self.debug = false
end