lib/core/core_setup_init.rb
# Function parsing the attrs_done to found equivalent group or subgroup.
#
# - 1. search for equivalent group
#   copy the equivalent group level to the group tested.
#   return if updated
#
# - 2. search for any subgroup already treated.
#   The group will get the highest level
#   each subgroup (part of the new group) will be decreased.
#   return if updated
#
# - 3. loop in groups if the tested group is a subgroup of an existing group
#   The group tested will get the lowest group level - 1
#   return if updated
#
# - 4. the group level is set with -1
#
Function parsing the attrs_done to found equivalent group or subgroup.
1. search for equivalent group
copy the equivalent group level to the group tested.
return if updated

2. search for any subgroup already treated.
The group will get the highest level
each subgroup (part of the new group) will be decreased.
return if updated

3. loop in groups if the tested group is a subgroup of an existing group
The group tested will get the lowest group level - 1
return if updated

4. the group level is set with -1
Function parsing the attrs_done to found equivalent group or subgroup . 1 . search for equivalent group copy the equivalent group level to the group tested . return if updated 2 . search for any subgroup already treated . The group will get the highest level each subgroup ( part of the new group ) will be decreased . return if updated 3 . loop in groups if the tested group is a subgroup of an existing group The group tested will get the lowest group level - 1 return if updated 4 . the group level is set with - 1
def _setup_set_group_level(dependencies, attrs_done, attr_name, group, objs)
      return unless _setup_set_group_case1(attrs_done, attr_name, group, objs)
      return unless _setup_set_group_case2(dependencies, attrs_done,
                                           attr_name, group, objs)
      _setup_set_group_case34(attrs_done, attr_name, group, objs)
    end
def _setup_set_group_level ( dependencies , attrs_done , attr_name , group , objs ) return unless _setup_set_group_case1 ( attrs_done , attr_name , group , objs ) return unless _setup_set_group_case2 ( dependencies , attrs_done , attr_name , group , objs ) _setup_set_group_case34 ( attrs_done , attr_name , group , objs ) end
Function parsing the attrs_done to found equivalent group or subgroup.
Function parsing the attrs_done to found equivalent group or subgroup .
dependencies
<not_specific>
attrs_done
<not_specific>
attr_name
<not_specific>
group
<not_specific>
objs
<not_specific>