mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Allow string as argument to alias_method
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
50629ec6db
commit
062616677f
1 changed files with 2 additions and 0 deletions
|
@ -2267,6 +2267,8 @@ module RDoc
|
||||||
tk.text.sub(/^:/, '')
|
tk.text.sub(/^:/, '')
|
||||||
when TkId, TkOp
|
when TkId, TkOp
|
||||||
tk.name
|
tk.name
|
||||||
|
when TkSTRING
|
||||||
|
tk.text
|
||||||
else
|
else
|
||||||
raise "Name or symbol expected (got #{tk})"
|
raise "Name or symbol expected (got #{tk})"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue