Class: Bade::AST::TagNode
- Inherits:
-
Node
- Object
- Node
- Bade::AST::TagNode
show all
- Defined in:
- lib/bade/ast/node/tag_node.rb
Instance Attribute Summary collapse
Attributes inherited from Node
#children, #lineno, #type
Instance Method Summary
collapse
Methods inherited from Node
#initialize, #inspect, #to_s
Instance Attribute Details
8
9
10
|
# File 'lib/bade/ast/node/tag_node.rb', line 8
def name
@name
end
|
Instance Method Details
#==(other) ⇒ Object
12
13
14
|
# File 'lib/bade/ast/node/tag_node.rb', line 12
def ==(other)
super && name == other.name
end
|
18
19
20
|
# File 'lib/bade/ast/node/tag_node.rb', line 18
def attributes
children.select { |n| n.type == :tag_attr }
end
|