Sha256: 4a99b0f117fa7529a870eb4b87623c05544e2b2da7d6f1dc836b38ef1d9e2ff5
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
require "pandoc_object_filters" module PandocObjectFilters module V1_16 module Element class Document < PandocObjectFilters::V1_16::Element::Base module Behavior attr_reader :meta def initialize(ast) object = PandocObjectFilters::Element.to_object(ast) @meta = object[0] @contents = object[1] end def to_ast [meta.to_ast, PandocObjectFilters::Element.to_ast(contents)] end end include Behavior end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pandoc_object_filters-0.2.0 | lib/pandoc_object_filters/v1_16/element/document.rb |