diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-27 04:28:14 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-27 04:28:14 +0000 |
commit | 1c279a7d2753949c725754e1302f791b76358114 (patch) | |
tree | 36aa3bdde250e564445eba5f2e25fcb96bcb6cef /lib/rdoc/normal_module.rb | |
parent | c72f0daa877808e4fa5018b3191ca09d4b97c03d (diff) | |
download | ruby-1c279a7d2753949c725754e1302f791b76358114.tar.gz |
* lib/rdoc*: Updated to RDoc 4.0 (pre-release)
* bin/rdoc: ditto
* test/rdoc: ditto
* NEWS: Updated with RDoc 4.0 information
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/normal_module.rb')
-rw-r--r-- | lib/rdoc/normal_module.rb | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/rdoc/normal_module.rb b/lib/rdoc/normal_module.rb index 0fa7223547..cd77b1e39e 100644 --- a/lib/rdoc/normal_module.rb +++ b/lib/rdoc/normal_module.rb @@ -1,14 +1,12 @@ -require 'rdoc/class_module' - ## # A normal module, like NormalClass class RDoc::NormalModule < RDoc::ClassModule def inspect # :nodoc: - "#<%s:0x%x module %s includes: %p attributes: %p methods: %p aliases: %p>" % [ + "#<%s:0x%x module %s includes: %p extends: %p attributes: %p methods: %p aliases: %p>" % [ self.class, object_id, - full_name, @includes, @attributes, @method_list, @aliases + full_name, @includes, @extends, @attributes, @method_list, @aliases ] end @@ -34,19 +32,24 @@ class RDoc::NormalModule < RDoc::ClassModule q.seplist @includes do |inc| q.pp inc end q.breakable + q.breakable + q.text "constants:" + q.breakable + q.seplist @constants do |const| q.pp const end + q.text "attributes:" q.breakable - q.seplist @attributes do |inc| q.pp inc end + q.seplist @attributes do |attr| q.pp attr end q.breakable q.text "methods:" q.breakable - q.seplist @method_list do |inc| q.pp inc end + q.seplist @method_list do |meth| q.pp meth end q.breakable q.text "aliases:" q.breakable - q.seplist @aliases do |inc| q.pp inc end + q.seplist @aliases do |aliaz| q.pp aliaz end q.breakable q.text "comment:" |