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 1001
1001:     def initialize(text, old_name, new_name, comment)
1002:       super()
1003:       @text = text
1004:       @old_name = old_name
1005:       @new_name = new_name
1006:       self.comment = comment
1007:     end

Public Instance methods

[Source]

      # File code_objects.rb, line 1009
1009:     def to_s
1010:       "alias: #{self.old_name} ->  #{self.new_name}\n#{self.comment}"
1011:     end

[Validate]