Sha256: ac580cf99f617a084f7ced59c84a08e84296a8c9c17b3eaab44513ff7e7aeb7e
Contents?: true
Size: 886 Bytes
Versions: 1
Compression:
Stored size: 886 Bytes
Contents
# frozen_string_literal: true module ActiveObject class Configuration attr_accessor :autoload_array, :autoload_date, :autoload_enumerable, :autoload_hash, :autoload_integer, :autoload_kernel, :autoload_numeric, :autoload_object, :autoload_range, :autoload_string, :autoload_time def initialize @autoload_array = true @autoload_date = true @autoload_enumerable = true @autoload_hash = true @autoload_integer = true @autoload_kernel = true @autoload_numeric = true @autoload_object = true @autoload_range = true @autoload_string = true @autoload_time = true end end def self.configuration @configuration ||= Configuration.new end def self.configuration=(config) @configuration = config end def self.configure yield(configuration) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_object-5.1.0 | lib/active_object/configuration.rb |