Sha256: 58d5c40335a037ecc94c4fd3d51a8c5bf30b79202ce9a5f13ce18c14c199726e

Contents?: true

Size: 546 Bytes

Versions: 13

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true

module Lite
  module Ruby

    class Configuration

      attr_accessor :monkey_patches

      def initialize
        @monkey_patches = %w[
          array boolean date enumerable hash integer kernel numeric object open_struct 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

13 entries across 13 versions & 1 rubygems

Version Path
lite-ruby-1.0.16 lib/lite/ruby/configuration.rb
lite-ruby-1.0.15 lib/lite/ruby/configuration.rb
lite-ruby-1.0.14 lib/lite/ruby/configuration.rb
lite-ruby-1.0.13 lib/lite/ruby/configuration.rb
lite-ruby-1.0.12 lib/lite/ruby/configuration.rb
lite-ruby-1.0.11 lib/lite/ruby/configuration.rb
lite-ruby-1.0.10 lib/lite/ruby/configuration.rb
lite-ruby-1.0.9 lib/lite/ruby/configuration.rb
lite-ruby-1.0.8 lib/lite/ruby/configuration.rb
lite-ruby-1.0.7 lib/lite/ruby/configuration.rb
lite-ruby-1.0.6 lib/lite/ruby/configuration.rb
lite-ruby-1.0.5 lib/lite/ruby/configuration.rb
lite-ruby-1.0.4 lib/lite/ruby/configuration.rb