Class: RI::ModuleDescription

Inherits:
Description show all
Defined in:
lib/rdoc/ri/ri_descriptions.rb

Direct Known Subclasses

ClassDescription

Instance Attribute Summary collapse

Attributes inherited from Description

#comment, #full_name, #name

Instance Method Summary collapse

Methods inherited from Description

#<=>, deserialize, #serialize

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes



84
85
86
# File 'lib/rdoc/ri/ri_descriptions.rb', line 84

def attributes
  @attributes
end

#class_methodsObject

Returns the value of attribute class_methods



82
83
84
# File 'lib/rdoc/ri/ri_descriptions.rb', line 82

def class_methods
  @class_methods
end

#constantsObject

Returns the value of attribute constants



85
86
87
# File 'lib/rdoc/ri/ri_descriptions.rb', line 85

def constants
  @constants
end

#includesObject

Returns the value of attribute includes



86
87
88
# File 'lib/rdoc/ri/ri_descriptions.rb', line 86

def includes
  @includes
end

#instance_methodsObject

Returns the value of attribute instance_methods



83
84
85
# File 'lib/rdoc/ri/ri_descriptions.rb', line 83

def instance_methods
  @instance_methods
end

Instance Method Details

#display_nameObject



105
106
107
# File 'lib/rdoc/ri/ri_descriptions.rb', line 105

def display_name
  "Module"
end

#merge_in(old) ⇒ Object

merge in another class desscription into this one



89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# File 'lib/rdoc/ri/ri_descriptions.rb', line 89

def merge_in(old)
  merge(@class_methods, old.class_methods)
  merge(@instance_methods, old.instance_methods)
  merge(@attributes, old.attributes)
  merge(@constants, old.constants)
  merge(@includes, old.includes)
  if @comment.nil? || @comment.empty?
    @comment = old.comment
  else
    unless old.comment.nil? or old.comment.empty? then
      @comment << SM::Flow::RULE.new
      @comment.concat old.comment
    end
  end
end

#superclass_stringObject

the 'ClassDescription' subclass overrides this to format up the name of a parent



111
112
113
# File 'lib/rdoc/ri/ri_descriptions.rb', line 111

def superclass_string
  nil
end