Sha256: 363fd84aec4eb1c76df2cb9c3962b5eba5743fa7a59a56876b612c0c72f05df2

Contents?: true

Size: 314 Bytes

Versions: 28

Compression:

Stored size: 314 Bytes

Contents

module GorgonAMQ
  module Protocol
    # Allows distinguishing between 32-bit and 64-bit floats in Ruby.
    # Useful in cases when RabbitMQ plugins encode
    # values as 32 bit numbers.
    class Float32Bit
      attr_reader :value

      def initialize(value)
        @value = value
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
gorgon-0.6.5 lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/float_32bit.rb
gorgon-0.6.4 lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/float_32bit.rb
gorgon-0.6.3 lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/float_32bit.rb
gorgon-0.6.2 lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/float_32bit.rb
gorgon-0.6.1 lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/float_32bit.rb
gorgon-0.6.0 lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/float_32bit.rb
gorgon-0.6.0.rc2 lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/float_32bit.rb
gorgon-0.6.0.rc1 lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/float_32bit.rb