Sha256: e9aa37d49b26a370bcfb4d771f71133113537180f7406ad18c39e24b83c9307d
Contents?: true
Size: 409 Bytes
Versions: 10
Compression:
Stored size: 409 Bytes
Contents
module FFI_Yajl class ParseError < StandardError; end class Parser attr_accessor :opts def self.parse(obj, *args) new(*args).parse(obj) end def initialize(opts = {}) @opts = opts end def parse(str) # initialization that we can do in pure ruby yajl_opts = {} # call either the ext or ffi hook do_yajl_parse(str, yajl_opts) end end end
Version data entries
10 entries across 10 versions & 1 rubygems