Class: Mimas::Config::Site

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

Instance Attribute Summary

Attributes inherited from Options

#options

Instance Method Summary collapse

Methods inherited from Options

evaluate, #initialize, #method_missing

Constructor Details

This class inherits a constructor from Mimas::Config::Options

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Mimas::Config::Options

Instance Method Details

#deploy(&block) ⇒ Object



112
113
114
# File 'lib/mimas/config.rb', line 112

def deploy(&block)
  @options[:deploy] = block.call.to_s
end

#services(&block) ⇒ Object



108
109
110
# File 'lib/mimas/config.rb', line 108

def services(&block)
  @options[:services] = Services.parse(&block)
end