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.
9 10 11 |
# File 'lib/better_html/ast/node.rb', line 9 def loc @loc end |
Instance Method Details
#descendants(*types) ⇒ Object
11 12 13 |
# File 'lib/better_html/ast/node.rb', line 11 def descendants(*types) AST::Iterator.descendants(self, types) end |
#location ⇒ Object
15 16 17 |
# File 'lib/better_html/ast/node.rb', line 15 def location loc end |