Sha256: b376fb43610c23653888e86468391063aa33fdc8632c85f40d5cdc49b654fa9e

Contents?: true

Size: 824 Bytes

Versions: 1

Compression:

Stored size: 824 Bytes

Contents

# frozen_string_literal: true

module Lite
  module Ruby

    class Configuration

      attr_accessor :array, :date, :enumerable, :hash, :integer, :kernel, :numeric, :object, :range,
                    :string, :time

      # rubocop:disable Metrics/MethodLength
      def initialize
        @array = true
        @date = true
        @enumerable = true
        @hash = true
        @integer = true
        @kernel = true
        @numeric = true
        @object = true
        @range = true
        @string = true
        @time = true
      end
      # rubocop:enable Metrics/MethodLength

    end

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

    def self.configuration=(config)
      @configuration = config
    end

    def self.configure
      yield(configuration)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lite-ruby-1.0.0 lib/lite/ruby/configuration.rb