Simple library to convert nested hashes to two arrays - one for keys and one for values.
C Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.textile
extconf.rb
hash_to_array.c
test.rb

README.textile

HashToArray

Simple library that converts a nested hash (or a non-nested hash) to two arrays.
One array contains the hash keys and the other hash contains the hash values.

This is meant to be an example of how to create a C extension for ruby.

Usage

ruby extconf.rb
make
ruby test.rb

Check out test.rb

License

© 2011-2013 Chris Parker, released under the MIT license