Sha256: 4b9a3eccf8d8abe350ef5206d44315ff1b8334e878e34b1e6368d2b0cd41bc3d
Contents?: true
Size: 479 Bytes
Versions: 12
Compression:
Stored size: 479 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 = {} # XXX: bug-compat with ruby-yajl return nil if str == "" # call either the ext or ffi hook do_yajl_parse(str, yajl_opts) end end end
Version data entries
12 entries across 12 versions & 1 rubygems