module ActsAsPushable
Constants
- LOCK
- VERSION
Public Class Methods
configuration()
click to toggle source
# File lib/acts_as_pushable.rb, line 26 def configuration @configuration = nil unless defined?(@configuration) @configuration || LOCK.synchronize { @configuration ||= ActsAsPushable::Configuration.new } end
configure(config_hash=nil) { |configuration| ... }
click to toggle source
# File lib/acts_as_pushable.rb, line 16 def configure(config_hash=nil) if config_hash config_hash.each do |k,v| configuration.send("#{k}=", v) rescue nil if configuration.respond_to?("#{k}=") end end yield(configuration) if block_given? end