Class: Paru::PandocFilter::Div
- Includes:
- InnerMarkdown
- Defined in:
- lib/paru/filter/div.rb
Overview
A Div node consisting of an attribute object and a list of Block nodes.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#ast_contents ⇒ Object
Create an AST representation of this Div node.
-
#has_block? ⇒ Boolean
Has this Div node Blocks as children?.
-
#initialize(contents) ⇒ Div
constructor
Create a new Div node based on the contents.
-
#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
Instance Attribute Details
Instance Method Details
#ast_contents ⇒ Object
Create an AST representation of this Div node.
45 46 47 48 49 50 |
# File 'lib/paru/filter/div.rb', line 45 def ast_contents() [ @attr.to_ast, super ] end |
#has_block? ⇒ Boolean
Has this Div node Blocks as children?
55 56 57 |
# File 'lib/paru/filter/div.rb', line 55 def has_block? true 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