Class: Imagine::Config
- Inherits:
-
Object
- Object
- Imagine::Config
- Defined in:
- lib/imagine/config.rb
Instance Attribute Summary collapse
-
#default_plugin(default_plugin = nil) ⇒ Object
Returns the value of attribute default_plugin.
-
#engines ⇒ Object
Returns the value of attribute engines.
-
#orm(orm = nil) ⇒ Object
Returns the value of attribute orm.
-
#plugins(plugins = nil) ⇒ Object
Returns the value of attribute plugins.
Instance Method Summary collapse
-
#initialize(options = {}, &block) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(options = {}, &block) ⇒ Config
Returns a new instance of Config.
5 6 7 8 9 10 11 |
# File 'lib/imagine/config.rb', line 5 def initialize(={}, &block) self.orm = .delete(:orm) self.plugins = .delete(:plugins) self.default_plugin = .delete(:default_plugin) self.engines = [] instance_eval &block if block_given? end |
Instance Attribute Details
#default_plugin(default_plugin = nil) ⇒ Object
Returns the value of attribute default_plugin.
3 4 5 |
# File 'lib/imagine/config.rb', line 3 def default_plugin @default_plugin end |
#engines ⇒ Object
Returns the value of attribute engines.
3 4 5 |
# File 'lib/imagine/config.rb', line 3 def engines @engines end |
#orm(orm = nil) ⇒ Object
Returns the value of attribute orm.
3 4 5 |
# File 'lib/imagine/config.rb', line 3 def orm @orm end |
#plugins(plugins = nil) ⇒ Object
Returns the value of attribute plugins.
3 4 5 |
# File 'lib/imagine/config.rb', line 3 def plugins @plugins end |