Class: Paru::PandocFilter::MetaValue
- Includes:
- InnerMarkdown
- Defined in:
- lib/paru/filter/meta_value.rb
Overview
A MetaValue Node is either a MetaMap, MetaList, MetaBool, MetaString, MetaInlines, or a MetaBlocks.
Direct Known Subclasses
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#ast_contents ⇒ Object
The AST contents.
-
#initialize(value) ⇒ MetaValue
constructor
Create a new MetaValue Node based on the value.
-
#inner_markdown ⇒ String
included
from InnerMarkdown
Get the markdown representation of this Node's children.
-
#inner_markdown=(markdown) ⇒ Object
included
from InnerMarkdown
Replace this Node's children with the Nodes represented by the markdown string.
Constructor Details
#initialize(value) ⇒ MetaValue
Create a new MetaValue Node based on the value
38 39 40 |
# File 'lib/paru/filter/meta_value.rb', line 38 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ String|Boolean
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/paru/filter/meta_value.rb', line 30 class MetaValue < Node include InnerMarkdown attr_accessor :value # Create a new MetaValue Node based on the value # # @param value [String] def initialize(value) @value = value end # The AST contents def ast_contents() @value end end |
Instance Method Details
#ast_contents ⇒ Object
The AST contents
43 44 45 |
# File 'lib/paru/filter/meta_value.rb', line 43 def ast_contents() @value end |
#inner_markdown ⇒ String Originally defined in module InnerMarkdown
Get the markdown representation of this Node's children.
#inner_markdown=(markdown) ⇒ Object Originally defined in module InnerMarkdown
Replace this Node's children with the Nodes represented by the markdown string