Class: Paru::PandocFilter::EmptyBlock
- Defined in:
- lib/paru/filter/empty_block.rb
Overview
An EmptyBlock, has not contents
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(contents = []) ⇒ EmptyBlock
constructor
Create an empty block.
-
#to_ast ⇒ Object
Create an AST representation of this EmptyBlock.
Constructor Details
#initialize(contents = []) ⇒ EmptyBlock
Create an empty block
27 28 29 |
# File 'lib/paru/filter/empty_block.rb', line 27 def initialize(contents = []) super [] end |
Instance Method Details
#to_ast ⇒ Object
Create an AST representation of this EmptyBlock
32 33 34 35 36 |
# File 'lib/paru/filter/empty_block.rb', line 32 def to_ast { "t" => ast_type } end |