Sha256: 00c678994f347cfa5c87f430cf647ae533e29655fc713095d454e4498bbde1e2

Contents?: true

Size: 473 Bytes

Versions: 19

Compression:

Stored size: 473 Bytes

Contents

require File.dirname(__FILE__) + "/node_visitor"

module Glimmer
  module XML
    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
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
glimmer-0.8.2 lib/glimmer/xml/name_space_visitor.rb
glimmer-0.8.1 lib/glimmer/xml/name_space_visitor.rb
glimmer-0.8.0 lib/glimmer/xml/name_space_visitor.rb
glimmer-0.7.8 lib/glimmer/xml/name_space_visitor.rb
glimmer-0.7.7 lib/glimmer/xml/name_space_visitor.rb
glimmer-0.7.6 lib/glimmer/xml/name_space_visitor.rb
glimmer-0.7.5 lib/glimmer/xml/name_space_visitor.rb
glimmer-0.7.4 lib/glimmer/xml/name_space_visitor.rb
glimmer-0.7.3 lib/glimmer/xml/name_space_visitor.rb
glimmer-0.7.2 lib/glimmer/xml/name_space_visitor.rb
glimmer-0.7.1 lib/glimmer/xml/name_space_visitor.rb
glimmer-0.7.0 lib/glimmer/xml/name_space_visitor.rb
glimmer-0.6.0 lib/glimmer/xml/name_space_visitor.rb
glimmer-0.4.9 lib/glimmer/xml/name_space_visitor.rb
glimmer-0.4.8 lib/glimmer/xml/name_space_visitor.rb
glimmer-0.4.7 lib/glimmer/xml/name_space_visitor.rb
glimmer-0.4.6 lib/glimmer/xml/name_space_visitor.rb
glimmer-0.4.5 lib/glimmer/xml/name_space_visitor.rb
glimmer-0.4.4 lib/glimmer/xml/name_space_visitor.rb