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.
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?
33 34 35 |
# File 'lib/paru/filter/note.rb', line 33 def has_block? true end |
#has_inline? ⇒ Boolean
Has this Note inline contents?
40 41 42 |
# File 'lib/paru/filter/note.rb', line 40 def has_inline? false end |