Class: Mech::Compiler::Format::Yaml

Inherits:
Mech::Compiler::Format show all
Defined in:
lib/mech/compiler/format/yaml.rb

Instance Method Summary collapse

Methods inherited from Mech::Compiler::Format

#initialize, #output, #with_template

Methods included from Mech::Configurator

#config, #init

Constructor Details

This class inherits a constructor from Mech::Compiler::Format

Instance Method Details

#compile(data, params = {}) ⇒ Object



9
10
11
12
# File 'lib/mech/compiler/format/yaml.rb', line 9

def compile(data, params = {})
  @data = data
  with_template
end

#tmp_pathObject



5
6
7
# File 'lib/mech/compiler/format/yaml.rb', line 5

def tmp_path
  @tmp_path ||= File.join(config.tmp_path, 'yaml.erb')
end