Module: Lolita::Configuration::ClassMethods
- Defined in:
- lib/lolita/configuration.rb
Instance Method Summary collapse
-
#lolita(&block) ⇒ Object
This is main method for configuration, it initialize new Lolita::Configuration::Core object, that have other methost to define different parts of configuration.
- #lolita=(value) ⇒ Object
Instance Method Details
#lolita(&block) ⇒ Object
This is main method for configuration, it initialize new Lolita::Configuration::Core object, that have other methost to define different parts of configuration.
21 22 23 |
# File 'lib/lolita/configuration.rb', line 21 def lolita(&block) Lolita::LazyLoader.lazy_load(self,:@lolita,Lolita::Configuration::Core,self,&block) end |
#lolita=(value) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/lolita/configuration.rb', line 25 def lolita=(value) if value.is_a?(Lolita::Configuration::Core) || value.nil? @lolita = value else raise ArgumentError.new("Only Lolita::Configuration::Core is acceptable.") end end |