From a2e1fab5d29fa1dd46b3d9edd8ca4be288c853e5 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Fri, 24 Apr 2015 11:25:47 -0700 Subject: fix omitted options_hash in README API --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index b387167..12d1af9 100644 --- a/README.md +++ b/README.md @@ -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: -- cgit v1.2.1