Sha256: b85c2c2c2b5dba3ff409ea281e7d5655c933e68c45fe3be21c0e4a6e4ce7600e
Contents?: true
Size: 395 Bytes
Versions: 21
Compression:
Stored size: 395 Bytes
Contents
require File.dirname(__FILE__) + "/node_visitor" class NameSpaceVisitor < NodeVisitor def initialize(name_space_name) @name_space_name = name_space_name end def process_before_children(node) return if node.is_a?(String) node.name_space = Node.new(nil, @name_space_name, nil) if node and !node.name_space end def process_after_children(node) #NOOP end end
Version data entries
21 entries across 21 versions & 1 rubygems