Class: Coradoc::CoreModel::FrontmatterBlock::TextSplitter::Result
- Inherits:
-
Struct
- Object
- Struct
- Coradoc::CoreModel::FrontmatterBlock::TextSplitter::Result
- Defined in:
- lib/coradoc/core_model/frontmatter/text_splitter.rb
Overview
Result of splitting source text. frontmatter is the raw YAML body (without delimiters), nil if no frontmatter was present. body is the remaining document text.
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#frontmatter ⇒ Object
Returns the value of attribute frontmatter.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
28 29 30 |
# File 'lib/coradoc/core_model/frontmatter/text_splitter.rb', line 28 def body @body end |
#frontmatter ⇒ Object
Returns the value of attribute frontmatter
28 29 30 |
# File 'lib/coradoc/core_model/frontmatter/text_splitter.rb', line 28 def frontmatter @frontmatter end |
Instance Method Details
#frontmatter? ⇒ Boolean
29 30 31 |
# File 'lib/coradoc/core_model/frontmatter/text_splitter.rb', line 29 def frontmatter? !frontmatter.nil? && !frontmatter.empty? end |