mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
Sync RDoc 6.14.0
This commit is contained in:
parent
ca1ea95784
commit
03eb777c69
185 changed files with 2008 additions and 1655 deletions
|
@ -23,7 +23,7 @@ class RDoc::Alias < RDoc::CodeObject
|
|||
##
|
||||
# Is this an alias declared in a singleton context?
|
||||
|
||||
attr_accessor :singleton
|
||||
attr_reader :singleton
|
||||
|
||||
##
|
||||
# Source file token stream
|
||||
|
@ -34,7 +34,7 @@ class RDoc::Alias < RDoc::CodeObject
|
|||
# Creates a new Alias with a token stream of +text+ that aliases +old_name+
|
||||
# to +new_name+, has +comment+ and is a +singleton+ context.
|
||||
|
||||
def initialize(text, old_name, new_name, comment, singleton = false)
|
||||
def initialize(text, old_name, new_name, comment, singleton: false)
|
||||
super()
|
||||
|
||||
@text = text
|
||||
|
@ -59,13 +59,6 @@ class RDoc::Alias < RDoc::CodeObject
|
|||
"#alias-#{type}-#{html_name}"
|
||||
end
|
||||
|
||||
##
|
||||
# Full old name including namespace
|
||||
|
||||
def full_old_name
|
||||
@full_name || "#{parent.name}#{pretty_old_name}"
|
||||
end
|
||||
|
||||
##
|
||||
# HTML id-friendly version of +#new_name+.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue