Class: Fhlow::UnitFactory

Inherits:
LeafFactory show all
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

Instance Method Summary collapse

Methods inherited from LeafFactory

getLeafFor, inherited, load

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