Class: RDocF95::RI::ModuleDescription

Inherits:
Description show all
Defined in:
lib/rdoc-f95/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.



79
80
81
# File 'lib/rdoc-f95/ri/descriptions.rb', line 79

def attributes
  @attributes
end

#class_methodsObject

Returns the value of attribute class_methods.



77
78
79
# File 'lib/rdoc-f95/ri/descriptions.rb', line 77

def class_methods
  @class_methods
end

#constantsObject

Returns the value of attribute constants.



80
81
82
# File 'lib/rdoc-f95/ri/descriptions.rb', line 80

def constants
  @constants
end

#includesObject

Returns the value of attribute includes.



81
82
83
# File 'lib/rdoc-f95/ri/descriptions.rb', line 81

def includes
  @includes
end

#instance_methodsObject

Returns the value of attribute instance_methods.



78
79
80
# File 'lib/rdoc-f95/ri/descriptions.rb', line 78

def instance_methods
  @instance_methods
end

Instance Method Details

#display_nameObject



100
101
102
# File 'lib/rdoc-f95/ri/descriptions.rb', line 100

def display_name
    "Module"
end

#merge_in(old) ⇒ Object

merge in another class desscription into this one



84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# File 'lib/rdoc-f95/ri/descriptions.rb', line 84

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 << RDocF95::Markup::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



106
107
108
# File 'lib/rdoc-f95/ri/descriptions.rb', line 106

def superclass_string
  nil
end