Class: Paru::PandocFilter::EmptyBlock
- Defined in:
- lib/paru/filter/empty_block.rb
Overview
An EmptyBlock, has not contents
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(_contents = []) ⇒ EmptyBlock
constructor
Create an empty block.
-
#to_ast ⇒ Object
Create an AST representation of this EmptyBlock.
Methods inherited from Block
Methods inherited from Node
#ast_contents, #ast_type, #can_act_as_both_block_and_inline?, #each, from_markdown, #get_replacement, #has_been_replaced?, #has_block?, #has_children?, #has_class?, #has_inline?, #has_parent?, #has_string?, #is_block?, #is_inline?, #is_leaf?, #is_node?, #is_root?, #markdown, #markdown=, #toMetadata, #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 = []) ⇒ EmptyBlock
Create an empty block
28 29 30 |
# File 'lib/paru/filter/empty_block.rb', line 28 def initialize(_contents = []) super([]) end |
Instance Method Details
#to_ast ⇒ Object
Create an AST representation of this EmptyBlock
33 34 35 36 37 |
# File 'lib/paru/filter/empty_block.rb', line 33 def to_ast { 't' => ast_type } end |