Sha256: 24d78444b4261467130412f9e8b4864b66c5db774ff415d020f582d1bf1d9861
Contents?: true
Size: 397 Bytes
Versions: 7
Compression:
Stored size: 397 Bytes
Contents
# frozen_string_literal: true require 'json' module RubyLokaliseApi module JsonHandler # JSON custom parser. Uses built-in JSON by default but can be overridden to any other parser # 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
7 entries across 7 versions & 1 rubygems