diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-04-24 11:25:47 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-04-24 11:26:37 -0700 |
commit | a2e1fab5d29fa1dd46b3d9edd8ca4be288c853e5 (patch) | |
tree | eabe59b5e753d60d8a746707afbbf4f200866d1c | |
parent | 97349120810fbb32b6ebaaff91f40156ef5b739d (diff) | |
download | ffi-yajl-a2e1fab5d29fa1dd46b3d9edd8ca4be288c853e5.tar.gz |
fix omitted options_hash in README API
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -52,8 +52,8 @@ You can encode and parse with class objects: ```ruby options_hash = {} -json = FFI_Yajl::Encoder.encode( {"foo"=>["bar","baz"]} ) -hash = FFI_Yajl::Parser.parse( json ) +json = FFI_Yajl::Encoder.encode( {"foo"=>["bar","baz"]}, options_hash ) +hash = FFI_Yajl::Parser.parse( json, options_hash ) ``` Or you can be more object oriented: |