Class RDoc::Alias
In: code_objects.rb
doc-tmp/rdoc/code_objects.rb
Parent: CodeObject

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

Methods

new   new   to_s   to_s  

Public Class methods

[Source]

     # File code_objects.rb, line 704
704:     def initialize(text, old_name, new_name, comment)
705:       super()
706:       @text = text
707:       @old_name = old_name
708:       @new_name = new_name
709:       self.comment = comment
710:     end

[Source]

     # File doc-tmp/rdoc/code_objects.rb, line 704
704:     def initialize(text, old_name, new_name, comment)
705:       super()
706:       @text = text
707:       @old_name = old_name
708:       @new_name = new_name
709:       self.comment = comment
710:     end

Public Instance methods

[Source]

     # File code_objects.rb, line 712
712:     def to_s
713:       "alias: #{self.old_name} ->  #{self.new_name}\n#{self.comment}"
714:     end

[Source]

     # File doc-tmp/rdoc/code_objects.rb, line 712
712:     def to_s
713:       "alias: #{self.old_name} ->  #{self.new_name}\n#{self.comment}"
714:     end

[Validate]