Class: Paru::PandocFilter::Note

Inherits:
Inline show all
Defined in:
lib/paru/filter/note.rb

Overview

A Note node like a foot note or end note. It is a special node in the sense that itself is an Inline level node, but its contents are Block level.

Instance Attribute Summary

Attributes inherited from Node

#children, #parent

Instance Method Summary collapse

Methods inherited from Inline

#initialize, #is_inline?

Methods included from InnerMarkdown

#inner_markdown, #inner_markdown=

Methods inherited from Node

#ast_contents, #ast_type, #each, from_markdown, #get_replacement, #has_been_replaced?, #has_children?, #has_class?, #has_parent?, #has_string?, #initialize, #is_block?, #is_inline?, #is_leaf?, #is_node?, #is_root?, #markdown, #markdown=, #toMetadata, #to_ast, #to_s, #type

Methods included from ASTManipulation

#append, #delete, #each_depth_first, #find_index, #get, #insert, #prepend, #remove_at, #replace, #replace_at

Constructor Details

This class inherits a constructor from Paru::PandocFilter::Inline

Instance Method Details

#can_act_as_both_block_and_inline?Boolean

Although Note is defined to be inline, often it will act like a block element.

Returns:

  • (Boolean)

    true



48
49
50
# File 'lib/paru/filter/note.rb', line 48

def can_act_as_both_block_and_inline?
  true
end

#has_block?Boolean

Has this Note block contents?

Returns:

  • (Boolean)

    true



33
34
35
# File 'lib/paru/filter/note.rb', line 33

def has_block?
  true
end

#has_inline?Boolean

Has this Note inline contents?

Returns:

  • (Boolean)

    false



40
41
42
# File 'lib/paru/filter/note.rb', line 40

def has_inline?
  false
end