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 808
808:     def initialize(text, old_name, new_name, comment)
809:       super()
810:       @text = text
811:       @old_name = old_name
812:       @new_name = new_name
813:       self.comment = comment
814:     end

Public Instance methods

[Source]

     # File code_objects.rb, line 816
816:     def to_s
817:       "alias: #{self.old_name} ->  #{self.new_name}\n#{self.comment}"
818:     end

[Validate]