summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-04-24 11:25:47 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2015-04-24 11:26:37 -0700
commita2e1fab5d29fa1dd46b3d9edd8ca4be288c853e5 (patch)
treeeabe59b5e753d60d8a746707afbbf4f200866d1c /README.md
parent97349120810fbb32b6ebaaff91f40156ef5b739d (diff)
downloadffi-yajl-a2e1fab5d29fa1dd46b3d9edd8ca4be288c853e5.tar.gz
fix omitted options_hash in README API
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
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: