Class: Imagine::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/imagine/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options={}, &block)
  self.orm  = options.delete(:orm)
  self.plugins  = options.delete(:plugins)
  self.default_plugin = options.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

#enginesObject

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