Module: Inverter::Configuration
- Included in:
- Inverter
- Defined in:
- lib/inverter/configuration.rb
Instance Attribute Summary collapse
-
#disable_middleware ⇒ Object
Returns the value of attribute disable_middleware.
-
#excluded_templates ⇒ Object
Returns the value of attribute excluded_templates.
-
#model_class ⇒ Object
Returns the value of attribute model_class.
-
#template_folders ⇒ Object
Returns the value of attribute template_folders.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#disable_middleware ⇒ Object
Returns the value of attribute disable_middleware.
4 5 6 |
# File 'lib/inverter/configuration.rb', line 4 def disable_middleware @disable_middleware end |
#excluded_templates ⇒ Object
Returns the value of attribute excluded_templates.
4 5 6 |
# File 'lib/inverter/configuration.rb', line 4 def excluded_templates @excluded_templates end |
#model_class ⇒ Object
Returns the value of attribute model_class.
4 5 6 |
# File 'lib/inverter/configuration.rb', line 4 def model_class @model_class end |
#template_folders ⇒ Object
Returns the value of attribute template_folders.
4 5 6 |
# File 'lib/inverter/configuration.rb', line 4 def template_folders @template_folders end |
Class Method Details
.extended(base) ⇒ Object
15 16 17 |
# File 'lib/inverter/configuration.rb', line 15 def self.extended(base) base.set_default_configuration end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
11 12 13 |
# File 'lib/inverter/configuration.rb', line 11 def configure yield self end |
#set_default_configuration ⇒ Object
19 20 21 22 |
# File 'lib/inverter/configuration.rb', line 19 def set_default_configuration self.excluded_templates = [] self.disable_middleware = false end |