Class: NameQ::TextPool

Inherits:
Support::Pool show all
Defined in:
lib/nameq/text_pool.rb

Instance Attribute Summary

Attributes inherited from Support::Pool

#list

Instance Method Summary collapse

Methods inherited from Support::Pool

#entry_factory, #take

Constructor Details

#initialize(items, case_sensitive: true) ⇒ TextPool

Set up a new text-based pool.

Parameters:

  • name (Array<String>)

    the list of items to be included in the initial pool

  • case_sensitive (Boolean) (defaults to: true)

    should uniqueness of names consider case-sensitivity?



8
9
10
# File 'lib/nameq/text_pool.rb', line 8

def initialize(items, case_sensitive: true)
  super(Support::List.new(items, case_sensitive: case_sensitive))
end