Sha256: e7c7fb13a099f489676eaf54b049d3ea8a59c08fc909eb4293f6cba76e2f3718

Contents?: true

Size: 513 Bytes

Versions: 1

Compression:

Stored size: 513 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 :workers
      attr_accessor :reload
  
      def initialize
        @workers = 2
        @reload = false
      end
    end
    
  end
end

SuckerPunch::Backgroundable.configure {}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sucker_punch-backgroundable-0.1.0 lib/sucker_punch/backgroundable/config.rb