Class RDoc::ClassModule
In: code_objects.rb
parsers/parse_f95.rb
Parent: Context

Extend ClassModule class for parse_f95.rb Original class is defined in code_objects.rb.

  • The case of names of classes or modules or methods are ignored

Methods

Attributes

diagram  [RW] 
superclass  [R] 

Public Class methods

[Source]

     # File code_objects.rb, line 708
708:     def initialize(name, superclass = nil)
709:       @name       = name
710:       @diagram    = nil
711:       @superclass = superclass
712:       @comment    = ""
713:       super()
714:     end

Public Instance methods

[Source]

     # File code_objects.rb, line 743
743:     def find_class_named(name)
744:       return self if full_name == name
745:       @classes.each_value {|c| return c if c.find_class_named(name) }
746:       nil
747:     end

[Source]

     # File parsers/parse_f95.rb, line 639
639:     def find_file_named(name, method=nil, ignore_case=nil)
640:       parent.find_file_named(name, method, ignore_case)
641:     end

Return the fully qualified name of this class or module

[Source]

     # File code_objects.rb, line 717
717:     def full_name
718:       if @parent && @parent.full_name
719:         @parent.full_name + "::" + @name
720:       else
721:         @name
722:       end
723:     end

[Source]

     # File code_objects.rb, line 725
725:     def http_url(prefix)
726:       path = full_name.split("::")
727:       File.join(prefix, *path) + ".html"
728:     end

Return true if this object represents a module

[Source]

     # File code_objects.rb, line 731
731:     def is_module?
732:       false
733:     end

to_s is simply for debugging

[Source]

     # File code_objects.rb, line 736
736:     def to_s
737:       res = self.class.name + ": " + @name 
738:       res << @comment.to_s
739:       res << super
740:       res
741:     end

[Validate]