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

Version Path
glimmer-0.3.5 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.3.4 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.3.3 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.3.2 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.3.1 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.2.5 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.2.4 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.2.3 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.2.2 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.2.1 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.2.0 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.1.11.SWT4.14 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.1.11.470 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.1.10.470 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.1.9.470 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.1.8.470 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.1.5.470 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.1.4.470 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.1.4.swt.pre.4.7.0 lib/xml_command_handlers/models/name_space_visitor.rb
glimmer-0.1.3 lib/xml_command_handlers/models/name_space_visitor.rb