Method: AX::Element#inspect_subtree
- Defined in:
- lib/ax/element.rb
#inspect_subtree ⇒ String
Get the relevant details about the receiver and also the children and further descendents of the receiver. Each generation down the tree will be indented one level further.
417 418 419 420 421 422 423 424 |
# File 'lib/ax/element.rb', line 417 def inspect_subtree output = self.inspect + "\n" enum = Accessibility::Enumerators::DepthFirst.new self enum.each_with_level do |element, depth| output << "\t"*depth + element.inspect + "\n" end output end |