Class: ConfigFilesApi::AppendPlacer

Inherits:
Object
  • Object
show all
Defined in:
lib/config_files_api/placer.rb

Overview

allows to place element at the end of configuration. Default one.

Instance Method Summary collapse

Instance Method Details

#new_element(tree) ⇒ Object



4
5
6
7
8
9
# File 'lib/config_files_api/placer.rb', line 4

def new_element(tree)
  res = {}
  tree.data << res

  res
end