Sha256: a886c59def2a441b76b94e9d148ef9204f4015a9a3f3fd60d758fff0c9f19999

Contents?: true

Size: 516 Bytes

Versions: 1

Compression:

Stored size: 516 Bytes

Contents

# frozen_string_literal: true

module Lite
  module Ruby

    class Configuration

      attr_accessor :monkey_patches

      def initialize
        @monkey_patches = %w[
          array date enumerable hash integer kernel numeric object range string struct time
        ]
      end

    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.1 lib/lite/ruby/configuration.rb