Class: Fhlow::LibraryFactory
- Inherits:
-
LeafFactory
- Object
- LeafFactory
- Fhlow::LibraryFactory
- Defined in:
- lib/module_fhlow/leafs/Library.rb
Overview
This is a concrete implementation of the abstract class LeafFactory . A LibraryFactory 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.
47 48 49 |
# File 'lib/module_fhlow/leafs/Library.rb', line 47 def LibraryFactory.getPrefix() return "lib" 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.
53 54 55 |
# File 'lib/module_fhlow/leafs/Library.rb', line 53 def create(*_args) return Library.new(*_args) end |