lib/core/core_setup_init.rb
# Internal setup function to re-organize thanks to :before and :after.
Internal setup function to re-organize thanks to :before and :after.
Internal setup function to re - organize thanks to : before and : after .
def _setup_reorganize_so_befaft(attr_group)
      attrs = attr_group.map { |a| a.keys[0] }
      attrs.clone.each do |attr_name|
        meta = _get_meta_data(attr_name)
        next if meta.nil?
        next unless meta.rh_exist?(:after) || meta.rh_exist?(:before)
        if _setup_reorganize_so_befaft_move?(:after, meta, attrs, attr_name)
          _setup_reorganize_so_befaft_move(:after, meta, attrs, attr_group,
                                           attr_name)
        end
        next unless _setup_reorganize_so_befaft_move?(:before, meta, attrs,
                                                      attr_name)
        _setup_reorganize_so_befaft_move(:before, meta, attrs, attr_group,
                                         attr_name)
      end
      attr_group
    end
def _setup_reorganize_so_befaft ( attr_group ) attrs = attr_group . map { | a | a . keys [ 0 ] } attrs . clone . each do | attr_name | meta = _get_meta_data ( attr_name ) next if meta . nil? next unless meta . rh_exist? ( :after ) || meta . rh_exist? ( :before ) if _setup_reorganize_so_befaft_move? ( :after , meta , attrs , attr_name ) _setup_reorganize_so_befaft_move ( :after , meta , attrs , attr_group , attr_name ) end next unless _setup_reorganize_so_befaft_move? ( :before , meta , attrs , attr_name ) _setup_reorganize_so_befaft_move ( :before , meta , attrs , attr_group , attr_name ) end attr_group end
Internal setup function to re-organize thanks to :before and :after.
Internal setup function to re - organize thanks to : before and : after .
attr_group
<not_specific>