lib/nameq/support/pool.rb
# Take a name from the available pool of names,
# suffixed if necessary.
# @param name [String] the name to find a variant of within the pool
# @return [String] the resolved name from the pool
Take a name from the available pool of names,
suffixed if necessary.
Take a name from the available pool of names suffixed if necessary .
def resolve(entry)
        suffixes.each do |suffix|
          resolution = entry.resolve(suffix)
          return resolution unless list.include?(resolution)
        end
      end
def resolve ( entry ) suffixes . each do | suffix | resolution = entry . resolve ( suffix ) return resolution unless list . include? ( resolution ) end end
Take a name from the available pool of names,
suffixed if necessary.
Take a name from the available pool of names suffixed if necessary .
the resolved name from the pool
the resolved name from the pool
String
entry
name
the name to find a variant of within the pool
the name to find a variant of within the pool