module Toggleable
Toggleable
is a gem for toggling purposes.
this module includes all storage implementations listed on /storage/*.
Constants
- VERSION
Attributes
configuration[RW]
Public Instance Methods
configuration()
click to toggle source
# File lib/toggleable.rb, line 18 def configuration @configuration ||= Toggleable::Configuration.new end
configure() { |configuration| ... }
click to toggle source
# File lib/toggleable.rb, line 22 def configure yield(configuration) if block_given? # set default configuration for storage and namespace if none was provided configuration.storage ||= Toggleable::MemoryStore.new configuration.namespace ||= 'toggleable' configuration.expiration_time ||= 5.minutes end