Class: BetterHtml::AST::Node
- Inherits:
-
AST::Node
- Object
- AST::Node
- BetterHtml::AST::Node
- Defined in:
- lib/better_html/ast/node.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#loc ⇒ Object
readonly
Returns the value of attribute loc.
Instance Method Summary collapse
Instance Attribute Details
#loc ⇒ Object (readonly)
Returns the value of attribute loc.
7 8 9 |
# File 'lib/better_html/ast/node.rb', line 7 def loc @loc end |
Instance Method Details
#descendants(*types) ⇒ Object
9 10 11 |
# File 'lib/better_html/ast/node.rb', line 9 def descendants(*types) AST::Iterator.descendants(self, types) end |
#location ⇒ Object
13 14 15 |
# File 'lib/better_html/ast/node.rb', line 13 def location loc end |