class Tilt::YAML2JSON::Template
Public Instance Methods
allows_script?()
click to toggle source
# File lib/tilt/yaml2json/template.rb, line 18 def allows_script? false end
evaluate(*)
click to toggle source
# File lib/tilt/yaml2json/template.rb, line 14 def evaluate(*) @output ||= MultiJson.dump(YAML.load(data), pretty: true) end
prepare()
click to toggle source
# File lib/tilt/yaml2json/template.rb, line 10 def prepare # do nothing end