class CFA::Placer
Places a new {AugeasElement} into an {AugeasTree}. @abstract Subclasses implement different ways where
to place the entry by overriding {#new_element}.
Public Instance Methods
new_element(_tree)
click to toggle source
@overload new_element
(tree)
@param [AugeasTree] tree @return [AugeasElement,Hash] the new element; it is empty! Note that the return value is actually a Hash; {AugeasElement} documents its structure.
# File lib/cfa/placer.rb, line 13 def new_element(_tree) raise NotImplementedError, "Subclasses of #{Module.nesting.first} must override #{__method__}" end
Protected Instance Methods
create_element()
click to toggle source
# File lib/cfa/placer.rb, line 20 def create_element { operation: :add } end