Class: Eye::Patch::GroupSet

Inherits:
Hash
  • Object
show all
Defined in:
lib/eye/patch/group_set.rb

Instance Method Summary collapse

Constructor Details

#initialize(application, processes) ⇒ GroupSet

Returns a new instance of GroupSet.



7
8
9
10
11
12
13
14
# File 'lib/eye/patch/group_set.rb', line 7

def initialize(application, processes)
  @application = application

  Array(processes).group_by{ |item| item[:group] }.each do |group_name, items|
    name = group_name || "__default__"
    parse_group(name, items)
  end
end