module Redsquare::Config
Public Instance Methods
redis()
click to toggle source
# File lib/redsquare/config.rb, line 13 def redis @redis ||= Redis.current end
redis=(arg)
click to toggle source
# File lib/redsquare/config.rb, line 5 def redis=(arg) if arg.is_a?(Redis) @redis = arg else @redis = Redis.new(arg) end end
restricted_methods()
click to toggle source
# File lib/redsquare/config.rb, line 17 def restricted_methods @restricted_methods || [] end
restricted_methods=(methods)
click to toggle source
# File lib/redsquare/config.rb, line 21 def restricted_methods=(methods) @restricted_methods = methods end