Module: Troles::Common::Config::ClassMethods
- Included in:
- Troles::Common::Config
- Defined in:
- lib/troles/common/config/class_methods.rb
Instance Attribute Summary collapse
-
#auto_load ⇒ Object
Returns the value of attribute auto_load.
-
#default_orm ⇒ Object
Returns the value of attribute default_orm.
-
#log_on ⇒ Object
Returns the value of attribute log_on.
Instance Method Summary collapse
Instance Attribute Details
#auto_load ⇒ Object
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_orm ⇒ Object
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_on ⇒ Object
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_config ⇒ Object
24 25 26 |
# File 'lib/troles/common/config/class_methods.rb', line 24 def auto_config auto_config_setings end |
#auto_config?(name) ⇒ 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
20 21 22 |
# File 'lib/troles/common/config/class_methods.rb', line 20 def auto_load? @auto_load end |
#log_on? ⇒ Boolean
7 8 9 |
# File 'lib/troles/common/config/class_methods.rb', line 7 def log_on? log_on || false end |