Sha256: 54eaf435906c7dfd8a136753472b44449bcb67a0a219e70143c8f8f3753ef625
Contents?: true
Size: 534 Bytes
Versions: 4
Compression:
Stored size: 534 Bytes
Contents
module Rubinius module AST class Node # Public: Works like #visit, but it doesn't visit the children just yet; # instead, lets the visitor decide when and how to do it. # # visitor - The visitor object. It must respond to methods named after the # node names. # # Returns nothing. def lazy_visit(visitor, parent=nil, indent=false) args = [self.node_name, self, parent] args.push true if indent visitor.__send__ *args end end end end
Version data entries
4 entries across 4 versions & 1 rubygems