Class: Eye::Patch::GroupSet
- Inherits:
-
Hash
- Object
- Hash
- Eye::Patch::GroupSet
- Defined in:
- lib/eye/patch/group_set.rb
Instance Method Summary collapse
-
#initialize(application, processes) ⇒ GroupSet
constructor
A new instance of GroupSet.
Constructor Details
#initialize(application, processes) ⇒ GroupSet
Returns a new instance of GroupSet.
9 10 11 12 13 14 15 16 |
# File 'lib/eye/patch/group_set.rb', line 9 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 |