Class: Fhlow::UnitFactory
- Inherits:
-
LeafFactory
- Object
- LeafFactory
- Fhlow::UnitFactory
- Defined in:
- lib/module_fhlow/leafs/Unit.rb
Overview
This is a concrete implementation of the abstract class LeafFactory . A UnitFactory creates objects of Unit.
Class Method Summary collapse
-
.getPrefix ⇒ Object
Return the prefix used by Units.
Instance Method Summary collapse
-
#create(*_args) ⇒ Object
Creates objects of Unit.
Methods inherited from LeafFactory
Class Method Details
.getPrefix ⇒ Object
Return the prefix used by Units.
147 148 149 |
# File 'lib/module_fhlow/leafs/Unit.rb', line 147 def UnitFactory.getPrefix() return "unit" end |
Instance Method Details
#create(*_args) ⇒ Object
Creates objects of Unit.
*_args
-
Array of argumens passed to the constructor of Unit. See Unit.initialize for more details.
153 154 155 |
# File 'lib/module_fhlow/leafs/Unit.rb', line 153 def create(*_args) return Unit.new(*_args) end |