children returns an array of child locations.
# File htree/loc.rb, line 343 def children (0...@node.children.length).map {|i| get_subnode(i) } end
subst_subnode returns the location which refers the substituted tree.
loc.subst_subnode(pairs) -> loc t = HTree('<a><b><c>') l = t.make_loc.get_subnode(0, 0) l = l.subst_subnode({0=>HTree('<z/>')}) pp t, l.top.to_node # => #<HTree::Doc {elem <a> {elem <b> {emptyelem <c>}}}> #<HTree::Doc {elem <a> {elem <b> {emptyelem <z>}}}>
# File htree/loc.rb, line 338 def subst_subnode(pairs) self.subst_itself(@node.subst_subnode(pairs)) end
Generated with the Darkfish Rdoc Generator 2.