Class: Mimas::Config::DSL
- Inherits:
-
Object
- Object
- Mimas::Config::DSL
- Defined in:
- lib/mimas/config.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #hooks(&block) ⇒ Object
-
#initialize(source = nil, &block) ⇒ DSL
constructor
A new instance of DSL.
- #server(name, &block) ⇒ Object
- #site(name = :default, &block) ⇒ Object
Constructor Details
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
54 55 56 |
# File 'lib/mimas/config.rb', line 54 def config @config end |
Instance Method Details
#hooks(&block) ⇒ Object
80 81 82 |
# File 'lib/mimas/config.rb', line 80 def hooks(&block) @config.hooks.instance_exec(&block) end |