Sha256: e6b594cbc851115dd8a0130487615fd9eadce180c6647817f215bd0631049af6

Contents?: true

Size: 283 Bytes

Versions: 7

Compression:

Stored size: 283 Bytes

Contents

require 'yajl'

module Waffle
  module Encoders
    class Json

      class << self

        def encode(message = nil)
          Yajl::Encoder.encode message
        end

        def decode(message = '')
          Yajl::Parser.parse message
        end

      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
waffle-0.3.5 lib/waffle/encoders/json.rb
waffle-0.3.4 lib/waffle/encoders/json.rb
waffle-0.3.3 lib/waffle/encoders/json.rb
waffle-0.3.2 lib/waffle/encoders/json.rb
waffle-0.3.1 lib/waffle/encoders/json.rb
waffle-0.2.2 lib/waffle/encoders/json.rb
waffle-0.2.1 lib/waffle/encoders/json.rb