Sha256: dedc7d8aa3342d24256f3b8a034689dcf02026773cb144c944513f6b946b2e52

Contents?: true

Size: 709 Bytes

Versions: 1

Compression:

Stored size: 709 Bytes

Contents

require 'kangaroo/doc/namespace'

module Kangaroo
  module Doc
    class RootNamespace < Namespace
      def register
        YARD.parse(loader_modules)
        
        root = register_with_yard 'module', name do |r|
          mixin = P('Kangaroo::Util::Loader::RootNamespace')
          r.mixins(:class).unshift(mixin) unless r.mixins(:class).include?(mixin)
          r.add_file "(none)"
        end
        
        register_namespaces_in
      end
      
      def register_namespaces_in
        @root_namespace.constants.each do |namespace|
          namespace_const = @root_namespace.const_get(namespace)
          Namespace.new(namespace_const, logger).register
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kangaroo-0.1.0.alpha1 lib/kangaroo/doc/root_namespace.rb