Class: DumpFactory

nationscript/factory~DumpFactory(decider)

An ArrayFactory that subjects each new product to a decider function in order to determine whether to accept them into its collection.

Constructor

new DumpFactory(decider)

Parameters:
Name Type Description
decider FactoryDecider.<ProductType>

Decider function to use

Members

decider :FactoryDecider.<ProductType>

Function to pass each produced product through for a determination on whether to add the product to the collection.

Type:
  • FactoryDecider.<ProductType>

Methods

addToProduct()