Class RDoc::Alias
In: 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 code_objects.rb, line 812
812:     def initialize(text, old_name, new_name, comment)
813:       super()
814:       @text = text
815:       @old_name = old_name
816:       @new_name = new_name
817:       self.comment = comment
818:     end

Public Instance methods

[Source]

     # File code_objects.rb, line 820
820:     def to_s
821:       "alias: #{self.old_name} ->  #{self.new_name}\n#{self.comment}"
822:     end

[Validate]