https://github.com/mrcsparker/hash_to_array
Simple library to convert nested hashes to two arrays - one for keys and one for values.
https://github.com/mrcsparker/hash_to_array
Last synced: 2 months ago
JSON representation
Simple library to convert nested hashes to two arrays - one for keys and one for values.
- Host: GitHub
- URL: https://github.com/mrcsparker/hash_to_array
- Owner: mrcsparker
- Created: 2011-10-12T22:59:26.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-09-22T01:48:44.000Z (over 11 years ago)
- Last Synced: 2025-02-14T02:22:46.984Z (4 months ago)
- Language: C
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
README
h1. 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.
h3. Usage
ruby extconf.rb
make
ruby test.rbCheck out test.rb
h3. License
(c) 2011-2013 Chris Parker, released under the MIT license