Class: Paru::PandocFilter::EmptyInline
- Defined in:
- lib/paru/filter/empty_inline.rb
Overview
An EmptyInline node, has no content
Instance Method Summary collapse
-
#has_inline? ⇒ Boolean
Has this empty inline contents?.
-
#initialize(_) ⇒ EmptyInline
constructor
Create an EmptyInline node.
-
#to_ast ⇒ Object
Create an AST representation of this EmptyInline.
Constructor Details
#initialize(_) ⇒ EmptyInline
Create an EmptyInline node
28 29 30 |
# File 'lib/paru/filter/empty_inline.rb', line 28 def initialize(_) super([]) end |
Instance Method Details
#has_inline? ⇒ Boolean
Has this empty inline contents?
35 36 37 |
# File 'lib/paru/filter/empty_inline.rb', line 35 def has_inline? false end |
#to_ast ⇒ Object
Create an AST representation of this EmptyInline
40 41 42 43 44 |
# File 'lib/paru/filter/empty_inline.rb', line 40 def to_ast { 't' => ast_type } end |