Class: VueCompiler::Node::Element
- Inherits:
-
Object
- Object
- VueCompiler::Node::Element
- Defined in:
- lib/vue_component_compiler/node.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#children ⇒ Object
readonly
Returns the value of attribute children.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, attributes = [], children = []) ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize(name, attributes = [], children = []) ⇒ Element
Returns a new instance of Element.
23 24 25 26 27 |
# File 'lib/vue_component_compiler/node.rb', line 23 def initialize(name, attributes = [], children = []) @name = name @attributes = attributes @children = children end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
21 22 23 |
# File 'lib/vue_component_compiler/node.rb', line 21 def attributes @attributes end |
#children ⇒ Object (readonly)
Returns the value of attribute children.
21 22 23 |
# File 'lib/vue_component_compiler/node.rb', line 21 def children @children end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
21 22 23 |
# File 'lib/vue_component_compiler/node.rb', line 21 def name @name end |