Sha256: 31c7591bec122ec37950736c9cc1642c3bc00da9875c28957643411ea3dc2beb
Contents?: true
Size: 448 Bytes
Versions: 3
Compression:
Stored size: 448 Bytes
Contents
module Clever # Helpers for handling JSON responses module JSON if MultiJson.respond_to? :dump def self.dump(*args) MultiJson.dump(*args) end def self.load(*args) MultiJson.load(*args, symbolize_keys: true) end else def self.dump(*args) MultiJson.encode(*args) end def self.load(*args) MultiJson.decode(*args, symbolize_keys: true) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
clever-ruby-0.6.0 | lib/clever-ruby/json.rb |
clever-ruby-0.5.0 | lib/clever-ruby/json.rb |
clever-ruby-0.4.1 | lib/clever-ruby/json.rb |