Sha256: ec7f240892d113befc584967795267dfd31683ba5b5b5e2c3f4abdeb1e1bbc8b
Contents?: true
Size: 393 Bytes
Versions: 9
Compression:
Stored size: 393 Bytes
Contents
# frozen_string_literal: true require 'json' module RubyLokaliseApi # JSON custom parser. Uses built-in JSON by default but can be overridden to any other parser module JsonHandler # Converts Ruby object to JSON def custom_dump(obj) JSON.dump obj end # Converts JSON to Ruby object def custom_load(obj) JSON.parse obj end end end
Version data entries
9 entries across 9 versions & 1 rubygems