Sha256: f760341b44270f97b252c1ffe9e9980a1d04488d811a4c323f9fd06c9d434aa4

Contents?: true

Size: 329 Bytes

Versions: 5

Compression:

Stored size: 329 Bytes

Contents

require "json"
require_relative "exceptions"

module Statesman
  class Config
    attr_reader :adapter_class

    def initialize(block = nil)
      instance_eval(&block) unless block.nil?
    end

    def storage_adapter(adapter_class)
      @adapter_class = adapter_class
    end
    # rubocop:enable TrivialAccessors
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
statesman-3.4.1 lib/statesman/config.rb
statesman-3.4.0 lib/statesman/config.rb
statesman-3.3.0 lib/statesman/config.rb
statesman-3.2.0 lib/statesman/config.rb
statesman-3.1.0 lib/statesman/config.rb