Sha256: 6cfca647ca1ed1f7863dd0f4ccb8aef1c1f1bb1facec4c8ce5fee94f8e7407e7

Contents?: true

Size: 462 Bytes

Versions: 2

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

require 'singleton'

module  JuanPelota
  def self.configure
    if block_given?
      yield Configuration.instance
    else
      Configuration.instance
    end
  end

  class Configuration
    include Singleton

    attr_accessor :filtered_arguments,
                  :filtered_workers

    def filtered_arguments
      @filtered_arguments || []
    end

    def filtered_workers
      @filtered_workers || []
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
juan_pelota-2.1.0 lib/juan_pelota/configuration.rb
juan_pelota-2.0.1 lib/juan_pelota/configuration.rb