Class: Paru::PandocFilter::Para
- Includes:
- InnerMarkdown
- Defined in:
- lib/paru/filter/para.rb
Overview
A Para is a paragraph: a list of Inline nodes
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
-
#has_inline? ⇒ Boolean
Does a Para have inline content?.
-
#initialize(contents) ⇒ Para
constructor
Create a new Para node based on the contents.
Methods included from InnerMarkdown
#inner_markdown, #inner_markdown=
Methods inherited from Block
Methods inherited from Node
#ast_contents, #ast_type, #can_act_as_both_block_and_inline?, #children, #children=, #each, from_markdown, #get_replacement, #has_been_replaced?, #has_block?, #has_children?, #has_class?, #has_parent?, #has_string?, #is_block?, #is_inline?, #is_leaf?, #is_node?, #is_root?, #markdown, #markdown=, #toMetadata, #to_ast, #to_s, #type
Methods included from ASTManipulation
#append, #delete, #each_depth_first, #find_index, #get, #insert, #prepend, #remove_at, #replace, #replace_at
Constructor Details
#initialize(contents) ⇒ Para
Create a new Para node based on the contents
31 32 33 |
# File 'lib/paru/filter/para.rb', line 31 def initialize(contents) super contents, true end |
Instance Method Details
#has_inline? ⇒ Boolean
Does a Para have inline content?
38 39 40 |
# File 'lib/paru/filter/para.rb', line 38 def has_inline? true end |