Class: Mech::Compiler::Format::Yaml
- Inherits:
-
Mech::Compiler::Format
- Object
- Mech::Compiler::Format
- Mech::Compiler::Format::Yaml
- 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
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_path ⇒ Object
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 |