class Malt::Format::YAML
YAML
format¶ ↑
TODO: hmm… maybe use data to update yaml?
Public Instance Methods
html(*)
click to toggle source
to_html(*)
click to toggle source
# File lib/malt/formats/yaml.rb, line 34 def to_html(*) text = html opts = options.merge(:text=>text, :file=>refile(:html), :type=>:html) HTML.new(opts) end
to_yaml(*)
click to toggle source
# File lib/malt/formats/yaml.rb, line 21 def to_yaml(*) self end
Also aliased as: to_yml
yaml(*)
click to toggle source
# File lib/malt/formats/yaml.rb, line 14 def yaml(*) text end
Also aliased as: yml
Private Instance Methods
h(text)
click to toggle source
TODO: HTML
escaping
# File lib/malt/formats/yaml.rb, line 43 def h(text) text end