Module: ParseTree
- Included in:
- Tree, TreeObject
- Defined in:
- lib/rwd/tree.rb
Instance Method Summary collapse
Instance Method Details
#parsetree(premethod = "prechildren", postmethod = "postchildren", *args) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/rwd/tree.rb', line 21 def parsetree(premethod="prechildren", postmethod="postchildren", *args) if @visible method(premethod).call(*args) if respond_to?(premethod) @children.each do |obj| obj.parsetree(premethod, postmethod, *args) end method(postmethod).call(*args) if respond_to?(postmethod) end end |