Method: Eye::Dsl::ConfigOpts#contact_group
- Defined in:
- lib/eye/dsl/config_opts.rb
#contact_group(contact_group_name, &block) ⇒ Object
49 50 51 52 53 54 55 56 57 58 |
# File 'lib/eye/dsl/config_opts.rb', line 49 def contact_group(contact_group_name, &block) c = Eye::Dsl::ConfigOpts.new nil, self, false c.instance_eval(&block) cfg = c.config @config[:contacts] ||= {} if cfg[:contacts].present? @config[:contacts][contact_group_name.to_s] = cfg[:contacts].values @config[:contacts].merge!(cfg[:contacts]) end end |