Class RDoc::Alias
In: lib/rdoc/code_objects.rb
Parent: CodeObject

Represent an alias, which is an old_name/ new_name pair associated with a particular context

Methods

new   to_s  

Attributes

comment  [RW] 
new_name  [RW] 
old_name  [RW] 
text  [RW] 

Public Class methods

[Source]

     # File lib/rdoc/code_objects.rb, line 693
693:     def initialize(text, old_name, new_name, comment)
694:       super()
695:       @text = text
696:       @old_name = old_name
697:       @new_name = new_name
698:       self.comment = comment
699:     end

Public Instance methods

[Source]

     # File lib/rdoc/code_objects.rb, line 701
701:     def to_s
702:       "alias: #{self.old_name} ->  #{self.new_name}\n#{self.comment}"
703:     end

[Validate]