Class: Madman::Renderers::YAML

Inherits:
Object
  • Object
show all
Defined in:
lib/madman/renderers/yaml.rb

Class Method Summary collapse

Class Method Details

.render(yaml, opts = {}) ⇒ Object



4
5
6
7
# File 'lib/madman/renderers/yaml.rb', line 4

def self.render(yaml, opts={})
  doc = YAMLDoc.new yaml, title: opts[:title]
  doc.render
end