module Switchman
Constants
- VERSION
Public Class Methods
cache()
click to toggle source
# File lib/switchman.rb, line 13 def self.cache (@cache.respond_to?(:call) ? @cache.call : @cache) || ::Rails.cache end
cache=(cache)
click to toggle source
# File lib/switchman.rb, line 17 def self.cache=(cache) @cache = cache end
config()
click to toggle source
# File lib/switchman.rb, line 8 def self.config # TODO: load from yaml @config ||= {} end