Class: Paru::PandocFilter::Note
- 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
-
#can_act_as_both_block_and_inline? ⇒ Boolean
Although Note is defined to be inline, often it will act like a block element.
-
#has_block? ⇒ Boolean
Has this Note block contents?.
-
#has_inline? ⇒ Boolean
Has this Note inline contents?.
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.
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?
32 33 34 |
# File 'lib/paru/filter/note.rb', line 32 def has_block? true end |
#has_inline? ⇒ Boolean
Has this Note inline contents?
39 40 41 |
# File 'lib/paru/filter/note.rb', line 39 def has_inline? false end |