Sha256: 99ce1a754b797d31bc26954779016abb649ff48c59d2b2955599c4c2919d1867

Contents?: true

Size: 566 Bytes

Versions: 3

Compression:

Stored size: 566 Bytes

Contents

# configuration, see http://robots.thoughtbot.com/mygem-configure-block.
module SuckerPunch
  module Backgroundable
    class << self
      attr_accessor :configuration
    end
  
    def self.configure
      self.configuration ||= Configuration.new
      yield(configuration)
    end
  
    class Configuration
      attr_accessor :enabled
      attr_accessor :workers
      attr_accessor :reload
  
      def initialize
        @enabled = true
        @workers = 2
        @reload = false
      end
    end
    
  end
end

SuckerPunch::Backgroundable.configure {}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sucker_punch-backgroundable-0.3.1 lib/sucker_punch/backgroundable/config.rb
sucker_punch-backgroundable-0.3.0 lib/sucker_punch/backgroundable/config.rb
sucker_punch-backgroundable-0.2.0 lib/sucker_punch/backgroundable/config.rb