summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-01 17:00:05 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-01 17:00:05 +0000
commit062616677f26b9dfd1576c4157afcd77874ff6b1 (patch)
tree486c09d4d526b73ca2b3f261b92dc64911f2f8e4
parent50629ec6db106e2399181bdecb618111ebbf339f (diff)
Allow string as argument to alias_method
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/rdoc/parsers/parse_rb.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb
index 4c10bc4461..f127d8462e 100644
--- a/lib/rdoc/parsers/parse_rb.rb
+++ b/lib/rdoc/parsers/parse_rb.rb
@@ -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