Class: Magma::Templater
- Inherits:
-
Object
- Object
- Magma::Templater
- Defined in:
- lib/magma/templater.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(infile, options) ⇒ Templater
constructor
A new instance of Templater.
Methods included from Utils
#pipe, #read_file_or_stdin, #run, #symbolize_keys, #uuid?, #which
Methods included from Common
Constructor Details
#initialize(infile, options) ⇒ Templater
Returns a new instance of Templater.
12 13 14 15 |
# File 'lib/magma/templater.rb', line 12 def initialize(infile, ) @infile = infile @options = end |
Instance Method Details
#call ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/magma/templater.rb', line 17 def call pipe source, [ :template, :render, :parse, :transform, '.to_xml', ->(result) { handle_output!(result, .merge(infile: infile)) }, ] end |