Class: Itamae::Config
- Inherits:
-
Object
- Object
- Itamae::Config
- Defined in:
- lib/itamae/config.rb
Constant Summary collapse
- CONFIG_MATCHER =
/(-c|--config) +([^ ]+)/
Instance Method Summary collapse
-
#initialize(options) ⇒ Config
constructor
A new instance of Config.
- #load ⇒ Object
Constructor Details
#initialize(options) ⇒ Config
Returns a new instance of Config.
7 8 9 |
# File 'lib/itamae/config.rb', line 7 def initialize() @options = end |
Instance Method Details
#load ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/itamae/config.rb', line 11 def load return @options unless config_given? configs, = configs.each do |config| += load_config(config) end end |