Class: VueCompiler::Node::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/vue_component_compiler/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject (readonly)

Returns the value of attribute attributes.



21
22
23
# File 'lib/vue_component_compiler/node.rb', line 21

def attributes
  @attributes
end

#childrenObject (readonly)

Returns the value of attribute children.



21
22
23
# File 'lib/vue_component_compiler/node.rb', line 21

def children
  @children
end

#nameObject (readonly)

Returns the value of attribute name.



21
22
23
# File 'lib/vue_component_compiler/node.rb', line 21

def name
  @name
end