Class: Fhlow::LibraryFactory

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

Instance Method Summary collapse

Methods inherited from LeafFactory

getLeafFor, inherited, load

Class Method Details

.getPrefixObject

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