Class: AsciidoctorVaped::AST::Element

Inherits:
Node
  • Object
show all
Defined in:
lib/asciidoctor_vaped/ast/element.rb

Constant Summary

Constants inherited from Node

Node::TEXT_CONTEXTS

Instance Attribute Summary collapse

Attributes inherited from Node

#children, #parent

Instance Method Summary collapse

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

#attributesObject (readonly)

Returns the value of attribute attributes.



8
9
10
# File 'lib/asciidoctor_vaped/ast/element.rb', line 8

def attributes
  @attributes
end

#contextObject (readonly)

Returns the value of attribute context.



8
9
10
# File 'lib/asciidoctor_vaped/ast/element.rb', line 8

def context
  @context
end