Sha256: 8fa860d89310863d8b380afd362dd91a0647109e59fc88dfc8ac0588618c948b

Contents?: true

Size: 322 Bytes

Versions: 4

Compression:

Stored size: 322 Bytes

Contents

# frozen_string_literal: true

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
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
statesman-7.1.0 lib/statesman/config.rb
statesman-7.0.1 lib/statesman/config.rb
statesman-7.0.0 lib/statesman/config.rb
statesman-6.0.0 lib/statesman/config.rb