Sha256: 53f9962daf6c6d4c8ff939c9b1e01af65bfdef7b2d59d4ae6e9f2e385486ec95

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

module Blockster
  class Configuration
    attr_accessor :default_class

    def initialize
      @default_class = nil
    end
  end

  class << self
    def configuration
      @configuration ||= Configuration.new
    end

    def configure
      yield(configuration)
    end

    def default_class
      configuration.default_class
    end

    def reset_configuration!
      @configuration = Configuration.new
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blockster-0.1.0 lib/blockster/configuration.rb