class Mdoc::Meta
parsed meta information from the source file
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/mdoc/meta.rb, line 7 def initialize super() [:header_js_libs, :footer_js_libs, :footer_js_srcs].each do |k| send("#{k}=".to_sym, []) end end
Public Instance Methods
load(contents)
click to toggle source
# File lib/mdoc/meta.rb, line 14 def load(contents) # contents is expected as a hash in yaml format YAML.load(contents).each { |k, v| send("#{k}=".to_sym, v) } self end