Module: ActiveObject

Defined in:
lib/active_object/string.rb,
lib/active_object/date.rb,
lib/active_object/hash.rb,
lib/active_object/time.rb,
lib/active_object/array.rb,
lib/active_object/range.rb,
lib/active_object/object.rb,
lib/active_object/integer.rb,
lib/active_object/numeric.rb,
lib/active_object/version.rb,
lib/active_object/configuration.rb

Overview

frozen_string_literal: false

Defined Under Namespace

Modules: Array, Date, Hash, Integer, Numeric, Object, Range, String, Time Classes: Configuration, InstallGenerator

Class Method Summary collapse

Class Method Details

.configurationObject


28
29
30
# File 'lib/active_object/configuration.rb', line 28

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

.configuration=(config) ⇒ Object


32
33
34
# File 'lib/active_object/configuration.rb', line 32

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

.configure {|configuration| ... } ⇒ Object

Yields:


36
37
38
# File 'lib/active_object/configuration.rb', line 36

def self.configure
  yield(configuration)
end