class Mech::Compiler::Format::Yaml

Public Instance Methods

compile(data, params = {}) click to toggle source
# File lib/mech/compiler/format/yaml.rb, line 9
def compile(data, params = {})
  @data = data
  with_template
end
tmp_path() click to toggle source
# File lib/mech/compiler/format/yaml.rb, line 5
def tmp_path
  @tmp_path ||= File.join(config.tmp_path, 'yaml.erb')
end