Sha256: ef95d399a58ecf01be2a093dd32ba23267acc18f65934631c72446d06f7c97ba

Contents?: true

Size: 358 Bytes

Versions: 17

Compression:

Stored size: 358 Bytes

Contents

# encoding: UTF-8


module Spontaneous
  module Extensions
    module JSON
      def to_json
        Spontaneous::JSON.encode(self)
      end
      def serialise_http(user)
        Spontaneous.serialise_http(self)
      end
    end
  end
end


class Hash
  include Spontaneous::Extensions::JSON
end

class Array
  include Spontaneous::Extensions::JSON
end


Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta10 lib/spontaneous/extensions/json.rb
spontaneous-0.2.0.beta9 lib/spontaneous/extensions/json.rb
spontaneous-0.2.0.beta8 lib/spontaneous/extensions/json.rb
spontaneous-0.2.0.beta7 lib/spontaneous/extensions/json.rb
spontaneous-0.2.0.beta6 lib/spontaneous/extensions/json.rb
spontaneous-0.2.0.beta5 lib/spontaneous/extensions/json.rb
spontaneous-0.2.0.beta4 lib/spontaneous/extensions/json.rb
spontaneous-0.2.0.beta3 lib/spontaneous/extensions/json.rb
spontaneous-0.2.0.beta2 lib/spontaneous/extensions/json.rb
spontaneous-0.2.0.beta1 lib/spontaneous/extensions/json.rb
spontaneous-0.2.0.alpha7 lib/spontaneous/extensions/json.rb
spontaneous-0.2.0.alpha6 lib/spontaneous/extensions/json.rb
spontaneous-0.2.0.alpha5 lib/spontaneous/extensions/json.rb
spontaneous-0.2.0.alpha4 lib/spontaneous/extensions/json.rb
spontaneous-0.2.0.alpha3 lib/spontaneous/extensions/json.rb
spontaneous-0.2.0.alpha2 lib/spontaneous/extensions/json.rb
spontaneous-0.2.0.alpha1 lib/spontaneous/extensions/json.rb