Class: AsciidoctorVaped::AST::Element
- Defined in:
- lib/asciidoctor_vaped/ast/element.rb
Constant Summary
Constants inherited from Node
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(context, attributes: {}, children: []) ⇒ Element
constructor
A new instance of Element.
Methods inherited from Node
#<<, #append, #append_children, #parse_inline, #sections, #text, #to_h
Constructor Details
#initialize(context, attributes: {}, children: []) ⇒ Element
Returns a new instance of Element.
10 11 12 13 14 |
# File 'lib/asciidoctor_vaped/ast/element.rb', line 10 def initialize(context, attributes: {}, children: []) @context = context @attributes = attributes super(children:) end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
8 9 10 |
# File 'lib/asciidoctor_vaped/ast/element.rb', line 8 def attributes @attributes end |
#context ⇒ Object (readonly)
Returns the value of attribute context.
8 9 10 |
# File 'lib/asciidoctor_vaped/ast/element.rb', line 8 def context @context end |