From 6db9db48aded195bda3a888ceac0c1cdd7c62d05 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 30 Jul 2014 12:36:31 +0000 Subject: string.c: rb_to_symbol * string.c (rb_to_symbol): new function to convert an object to a symbol. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'internal.h') diff --git a/internal.h b/internal.h index c91670a388..4a5134d20a 100644 --- a/internal.h +++ b/internal.h @@ -810,6 +810,7 @@ void rb_gc_free_dsymbol(VALUE); VALUE rb_str_dynamic_intern(VALUE); ID rb_id_attrget(ID id); +VALUE rb_to_symbol(VALUE name); VALUE rb_check_symbol(volatile VALUE *namep); #ifdef RUBY_ENCODING_H VALUE rb_check_symbol_cstr(const char *ptr, long len, rb_encoding *enc); -- cgit v1.2.3