Sha256: a557f4b2f926f9a6d757d868ba83af6c78d343bb2cb1af18db4b0612fb02d070

Contents?: true

Size: 505 Bytes

Versions: 14

Compression:

Stored size: 505 Bytes

Contents

# frozen_string_literal: true

module Lite
  module Command

    class Configuration

      attr_accessor :raise_dynamic_faults

      def initialize
        @raise_dynamic_faults = false
      end

    end

    class << self

      attr_writer :configuration

      def configuration
        @configuration ||= Configuration.new
      end

      def configure
        yield(configuration)
      end

      def reset_configuration!
        @configuration = Configuration.new
      end

    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
lite-command-3.3.3 lib/lite/command/configuration.rb
lite-command-3.3.2 lib/lite/command/configuration.rb
lite-command-3.3.1 lib/lite/command/configuration.rb
lite-command-3.3.0 lib/lite/command/configuration.rb
lite-command-3.2.1 lib/lite/command/configuration.rb
lite-command-3.2.0 lib/lite/command/configuration.rb
lite-command-3.1.5 lib/lite/command/configuration.rb
lite-command-3.1.4 lib/lite/command/configuration.rb
lite-command-3.1.3 lib/lite/command/configuration.rb
lite-command-3.1.2 lib/lite/command/configuration.rb
lite-command-3.1.1 lib/lite/command/configuration.rb
lite-command-3.1.0 lib/lite/command/configuration.rb
lite-command-3.0.1 lib/lite/command/configuration.rb
lite-command-3.0.0 lib/lite/command/configuration.rb