lib/config_scripts/seeds/seed_set.rb
# This method adds a new seed set to our registry.
#
# If there is already a registered seed set with this set's set_number,
# the number will be incremented until it is available.
#
# @param [SeedSet] set
#   The new seed set.
#
# @return [SeedSet]
This method adds a new seed set to our registry.
If there is already a registered seed set with this set's set_number,
the number will be incremented until it is available.
This method adds a new seed set to our registry . If there is already a registered seed set with this set ' s set_number the number will be incremented until it is available .
def register_seed_set(set)
          @registered_sets ||= {}
          while @registered_sets[set.set_number]
            return if @registered_sets[set.set_number] == set
            set.set_number += 1
          end
          @registered_sets[set.set_number] = set
        end
def register_seed_set ( set ) @registered_sets ||= { } while @registered_sets [ set . set_number ] return if @registered_sets [ set . set_number ] == set set . set_number += 1 end @registered_sets [ set . set_number ] = set end
This method adds a new seed set to our registry.
This method adds a new seed set to our registry .
None
SeedSet
set
<not_specific>
<not_specific>
set The new seed set.
set The new seed set .