Sha256: fc947bbf616d96cb45a7e2484a403e3d4b30bd74ed76be8efeee863c9c09d078

Contents?: true

Size: 460 Bytes

Versions: 6

Compression:

Stored size: 460 Bytes

Contents

module RbGCCXML
  # Represents the <Namespace> node. Namespaces can have in it
  # more namespaces, methods, classes, structs, attributes, ... everything.
  class Namespace < Node

    # Special case for the top-level namespace, ignore :: or
    # we get elements that print out as ::::type
    def qualified_name #:nodoc:
      if @name == "::"
        ""
      else
        super
      end
    end

    def to_cpp
      self.qualified_name
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rbgccxml-1.1.0 lib/rbgccxml/nodes/namespace.rb
rbgccxml-1.0.4 lib/rbgccxml/nodes/namespace.rb
rbgccxml-1.0.3 lib/rbgccxml/nodes/namespace.rb
rbgccxml-1.0.2 lib/rbgccxml/nodes/namespace.rb
rbgccxml-1.0.1 lib/rbgccxml/nodes/namespace.rb
rbgccxml-1.0 lib/rbgccxml/nodes/namespace.rb