aboutsummaryrefslogtreecommitdiffstats
path: root/internal.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-16 09:21:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-16 09:21:56 +0000
commit20690026a7dd7622c7d824de71e337a68a293b63 (patch)
treec2e21553dc5527199a6caac0588ffb158d9be7dd /internal.h
parent1ff30ea2b1675fa6bfa50bb5bac1f8cdea8524e1 (diff)
downloadruby-20690026a7dd7622c7d824de71e337a68a293b63.tar.gz
struct.c: dig
* object.c (rb_obj_dig): dig in nested structs too. * struct.c (rb_struct_dig): new method Struct#dig. [Feature #11688] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index 600ad8e7d3..7e6f26db11 100644
--- a/internal.h
+++ b/internal.h
@@ -1141,6 +1141,7 @@ VALUE rb_cstr_intern(const char *ptr, long len, rb_encoding *enc);
/* struct.c */
VALUE rb_struct_init_copy(VALUE copy, VALUE s);
+VALUE rb_struct_lookup(VALUE s, VALUE idx);
/* time.c */
struct timeval rb_time_timeval(VALUE);