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.



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

#locationObject



15
16
17
# File 'lib/better_html/ast/node.rb', line 15

def location
  loc
end