Class: Coradoc::Mirror::ReverseBuilder::Include
- Defined in:
- lib/coradoc/mirror/reverse_builder.rb
Overview
Include directive: round-trips back to a CoreModel::Include link node. The text graph is preserved through mirror_json → core.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#apply_mark, #build_content, #build_inline_children, #build_node, #extract_text, #initialize, #inline_content, registers
Constructor Details
This class inherits a constructor from Coradoc::Mirror::ReverseBuilder::Base
Instance Method Details
#build(node) ⇒ Object
394 395 396 397 398 399 400 401 |
# File 'lib/coradoc/mirror/reverse_builder.rb', line 394 def build(node) attrs = node.attrs CoreModel::Include.new( target: attrs&.target, options: (attrs), raw_options: attrs&. || '' ) end |