Sha256: c92e207118c690edff0e9a19591058d2bb2cb67179b3bc1fbae62e923586d42f

Contents?: true

Size: 249 Bytes

Versions: 25

Compression:

Stored size: 249 Bytes

Contents

# encoding: utf-8

require 'multi_json'

module Github
  module Jsonable
    extend self

    def decode(*args)
      if MultiJson.respond_to?(:load)
        MultiJson.load *args
      else
        MultiJson.decode *args
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
github_api-0.8.1 lib/github_api/jsonable.rb
github_api-0.8.0 lib/github_api/jsonable.rb
github_api-0.7.2 lib/github_api/jsonable.rb
github_api-0.7.1 lib/github_api/jsonable.rb
github_api-0.7.0 lib/github_api/jsonable.rb