| Class | RDoc::ClassModule |
| In: |
rdoc/code_objects.rb
|
| Parent: | Context |
ClassModule is the base class for objects representing either a class or a module.
| diagram | [RW] | |
| superclass | [R] |
# File rdoc/code_objects.rb, line 556 def initialize(name, superclass = nil) @name = name @diagram = nil @superclass = superclass @comment = "" super() end
# File rdoc/code_objects.rb, line 591 def find_class_named(name) return self if full_name == name @classes.each_value {|c| return c if c.find_class_named(name) } nil end
Return the fully qualified name of this class or module
# File rdoc/code_objects.rb, line 565 def full_name if @parent && @parent.full_name @parent.full_name + "::" + @name else @name end end
# File rdoc/code_objects.rb, line 573 def http_url(prefix) path = full_name.split("::") File.join(prefix, *path) + ".html" end
ruby-doc.org is a service of James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, AZ.
Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.
For more information on the Ruby programming language, visit ruby-lang.org.
Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.