Class: Bade::AST::TagNode
Instance Attribute Summary collapse
Attributes inherited from Node
#children, #filename, #lineno, #parent, #type
Instance Method Summary collapse
Methods inherited from Node
Constructor Details
This class inherits a constructor from Bade::AST::Node
Instance Attribute Details
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 |
#attributes ⇒ Array<KeyValueNode>
18 19 20 |
# File 'lib/bade/ast/node/tag_node.rb', line 18 def attributes children.select { |n| n.type == :tag_attr } end |