1
0
Fork 0
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:
dave 2003-12-01 17:00:05 +00:00
parent 50629ec6db
commit 062616677f

View file

@ -2267,6 +2267,8 @@ module RDoc
tk.text.sub(/^:/, '')
when TkId, TkOp
tk.name
when TkSTRING
tk.text
else
raise "Name or symbol expected (got #{tk})"
end