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
27 28 29 |
# File 'lib/paru/filter/empty_inline.rb', line 27 def initialize _ super [] end |
Instance Method Details
#has_inline? ⇒ Boolean
Has this empty inline contents?
34 35 36 |
# File 'lib/paru/filter/empty_inline.rb', line 34 def has_inline? false end |
#to_ast ⇒ Object
Create an AST representation of this EmptyInline
39 40 41 42 43 |
# File 'lib/paru/filter/empty_inline.rb', line 39 def to_ast { "t" => ast_type } end |