Malt  Malt::Format::YAML

[Validate]
Generated with RDazzle Newfish 1.4.0

YAML format

TODO: hmm... maybe use data to update yaml?

Public Instance Methods

html(*) click to toggle source

Converting a plan YAML file to HTML makes no sense so we just wrap it in pre tags.

    # File lib/malt/formats/yaml.rb, line 29
29:     def html(*)
30:       "<pre>\n#{h text}\n</pre>"
31:     end
to_html(*) click to toggle source
    # File lib/malt/formats/yaml.rb, line 34
34:     def to_html(*)
35:       text = html
36:       opts = options.merge(:text=>text, :file=>refile(:html), :type=>:html)
37:       HTML.new(opts)
38:     end
to_yaml(*) click to toggle source
    # File lib/malt/formats/yaml.rb, line 21
21:     def to_yaml(*)
22:       self
23:     end
Also aliased as: to_yml
to_yml(*) click to toggle source
yaml(*) click to toggle source
    # File lib/malt/formats/yaml.rb, line 14
14:     def yaml(*)
15:       text
16:     end
Also aliased as: yml
yml(*) click to toggle source

Private Instance Methods

h(text) click to toggle source

TODO: HTML escaping

    # File lib/malt/formats/yaml.rb, line 43
43:       def h(text)
44:         text
45:       end

Disabled; run with --debug to generate this.