Hi,

In message "[ruby-talk:12507] rb_ary_each and hash"
    on 01/03/13, User Tcovert <tcovert / sahuagin.ne.mediaone.net> writes:

|I have a hash of string-values, I'd like to make a c array of cstr's, I was wondering how I can iterate through the hash to pull out all the values. I can figure out how I would do this with an array(I think) but looking in ruby.h and internal.h I can't see any operators that would work with the Hash. I know it mixes in enumerable, but I'm not sure how that affects the c layer.

Use st_foreach().  Examplea are shown in hash.c.

							matz.