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 Method Summary collapse

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



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

def can_act_as_both_block_and_inline?
    true
end

#has_block?Boolean

Has this Note block contents?

Returns:

  • (Boolean)

    true



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

def has_block?
    true
end

#has_inline?Boolean

Has this Note inline contents?

Returns:

  • (Boolean)

    false



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

def has_inline?
    false
end