Module: Troles::Common::Config::ClassMethods

Included in:
Troles::Common::Config
Defined in:
lib/troles/common/config/class_methods.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#auto_loadObject

Returns the value of attribute auto_load.



4
5
6
# File 'lib/troles/common/config/class_methods.rb', line 4

def auto_load
  @auto_load
end

#default_ormObject

Returns the value of attribute default_orm.



4
5
6
# File 'lib/troles/common/config/class_methods.rb', line 4

def default_orm
  @default_orm
end

#log_onObject

Returns the value of attribute log_on.



5
6
7
# File 'lib/troles/common/config/class_methods.rb', line 5

def log_on
  @log_on
end

Instance Method Details

#auto_configObject



24
25
26
# File 'lib/troles/common/config/class_methods.rb', line 24

def auto_config
  auto_config_setings
end

#auto_config?(name) ⇒ Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/troles/common/config/class_methods.rb', line 28

def auto_config? name
  auto_config_setings[name]
end

#auto_load?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/troles/common/config/class_methods.rb', line 20

def auto_load?
  @auto_load
end

#log_on?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/troles/common/config/class_methods.rb', line 7

def log_on?
  log_on || false
end