Sha256: f8258a73ed1db990ccfe348e88ca622b06320d5d9e66894ecda13dc826fc9569
Contents?: true
Size: 237 Bytes
Versions: 2
Compression:
Stored size: 237 Bytes
Contents
require "yaml" module Harp2Hugo class MetaData def initialize json_data @json_data = json_data end def to_yaml @json_data["linktitle"] = @json_data["title"] "#{@json_data.to_yaml}---\n" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
harp2hugo-0.0.3 | lib/harp2hugo/meta_data.rb |
harp2hugo-0.0.2 | lib/harp2hugo/meta_data.rb |