Sha256: 1a6c5bd3fbbab19eae0e1ffa028e356f954ed1b4d5453d76d29c1820e41bde06

Contents?: true

Size: 249 Bytes

Versions: 3

Compression:

Stored size: 249 Bytes

Contents

require 'yajl'

module Waffle
  module Encoders
    module Json
      module_function
      def encode message
        Yajl::Encoder.encode(message)
      end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
waffle-0.5.1 lib/waffle/encoders/json.rb
waffle-0.5.0 lib/waffle/encoders/json.rb
waffle-0.4.0 lib/waffle/encoders/json.rb