summaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-28 02:12:21 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-28 02:12:21 +0000
commit2b0dee5cb639b23fc59690c214acaa40b43380b2 (patch)
tree3dae5ac8d12b667e45c3bd2b90fd22a60b9a08fd /proc.c
parente4f026d2352c57f4a22fdd7f323f6189db2e0a00 (diff)
downloadruby-2b0dee5cb639b23fc59690c214acaa40b43380b2.tar.gz
ruby-2b0dee5cb639b23fc59690c214acaa40b43380b2.tar.xz
ruby-2b0dee5cb639b23fc59690c214acaa40b43380b2.zip
* proc.c (method_name): should return symbols instead of strings.
[ruby-dev:34531] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proc.c b/proc.c
index a2c53ce69..57109eff7 100644
--- a/proc.c
+++ b/proc.c
@@ -905,7 +905,7 @@ method_receiver(VALUE obj)
/*
* call-seq:
- * meth.name => string
+ * meth.name => symbol
*
* Returns the name of the method.
*/
@@ -916,7 +916,7 @@ method_name(VALUE obj)
struct METHOD *data;
Data_Get_Struct(obj, struct METHOD, data);
- return rb_str_dup(rb_id2str(data->id));
+ return ID2SYM(data->id);
}
/*