Class: Coradoc::Reference::Materializer::Passthrough

Inherits:
Base
  • Object
show all
Defined in:
lib/coradoc/reference/materializer/passthrough.rb

Overview

Default fallback. Returns the original edge-bearing node unchanged — an unresolvable or unrenderable reference survives materialization exactly as authored, so round-tripping is always safe and no content is ever lost.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.formatObject



20
21
22
# File 'lib/coradoc/reference/materializer/passthrough.rb', line 20

def format
  :any
end

.kindObject



12
13
14
# File 'lib/coradoc/reference/materializer/passthrough.rb', line 12

def kind
  :any
end

.presentationObject



16
17
18
# File 'lib/coradoc/reference/materializer/passthrough.rb', line 16

def presentation
  :any
end

Instance Method Details

#materialize(node:) ⇒ Object



25
26
27
# File 'lib/coradoc/reference/materializer/passthrough.rb', line 25

def materialize(node:, **)
  node
end