Class: Y::RenderRules::Node
- Inherits:
-
Data
- Object
- Data
- Y::RenderRules::Node
- Defined in:
- lib/y/rendering.rb
Overview
What a callback receives. attrs keys are as stored (Lexical's own
props keep their "__" prefix); content is the node's children,
already rendered to an HTML string; child_types lists the node's
element/block children by type, in document order — the structural
facts attrs and content can't answer (a gallery's image count, whether
a list item holds a nested list).
Instance Attribute Summary collapse
-
#attrs ⇒ Object
readonly
Returns the value of attribute attrs.
-
#child_types ⇒ Object
readonly
Returns the value of attribute child_types.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Attribute Details
#attrs ⇒ Object (readonly)
Returns the value of attribute attrs
64 65 66 |
# File 'lib/y/rendering.rb', line 64 def attrs @attrs end |
#child_types ⇒ Object (readonly)
Returns the value of attribute child_types
64 65 66 |
# File 'lib/y/rendering.rb', line 64 def child_types @child_types end |
#content ⇒ Object (readonly)
Returns the value of attribute content
64 65 66 |
# File 'lib/y/rendering.rb', line 64 def content @content end |
#type ⇒ Object (readonly)
Returns the value of attribute type
64 65 66 |
# File 'lib/y/rendering.rb', line 64 def type @type end |