Class: BetterHtml::AST::Node

Inherits:
AST::Node
  • Object
show all
Defined in:
lib/better_html/ast/node.rb

Direct Known Subclasses

TestHelper::RubyNode

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#locObject (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

#locationObject



13
14
15
# File 'lib/better_html/ast/node.rb', line 13

def location
  loc
end