Sha256: d850a5244d38968f09e7a000b8f5be28fe0a539d9619045b5dc2f4bd610138ec
Contents?: true
Size: 295 Bytes
Versions: 1
Compression:
Stored size: 295 Bytes
Contents
require 'yaml' require 'ostruct' module Mdoc ## parsed meta information from the source file class Meta < OpenStruct 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mdoc-0.0.9 | lib/mdoc/meta.rb |