Class: Coradoc::AsciiDoc::Serializer::Serializers::Inline::Passthrough
- Defined in:
- lib/coradoc/asciidoc/serializer/serializers/inline/passthrough.rb
Overview
Serializer for the inline passthrough (‘+++raw content+++`). Wraps the raw payload in triple-plus delimiters so downstream consumers know to skip inline substitution.
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#to_adoc(model, _options = {}) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/coradoc/asciidoc/serializer/serializers/inline/passthrough.rb', line 12 def to_adoc(model, = {}) content = serialize_content(model.content) return '' if content.empty? "+++#{content}+++" end |