Class: CFA::Placer Abstract
- Inherits:
-
Object
- Object
- CFA::Placer
- Defined in:
- lib/cfa/placer.rb
Overview
This class is abstract.
Subclasses implement different ways where to place the entry by overriding #new_element.
Places a new AugeasElement into an AugeasTree.
Direct Known Subclasses
Instance Method Summary collapse
-
#new_element(_tree) ⇒ AugeasElement, Hash
The new element; it is empty! Note that the return value is actually a Hash; AugeasElement documents its structure.
Instance Method Details
#new_element(_tree) ⇒ AugeasElement, Hash
Returns the new element; it is empty! Note that the return value is actually a Hash; AugeasElement documents its structure.
10 11 12 13 |
# File 'lib/cfa/placer.rb', line 10 def new_element(_tree) raise NotImplementedError, "Subclasses of #{Module.nesting.first} must override #{__method__}" end |