Class: Paru::PandocFilter::EmptyBlock

Inherits:
Block
  • Object
show all
Defined in:
lib/paru/filter/empty_block.rb

Overview

An EmptyBlock, has not contents

Direct Known Subclasses

HorizontalRule, Null

Instance Method Summary collapse

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_astObject

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