Class: Qpid::Proton::Types::ArrayHeader Deprecated

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
lib/types/array.rb

Overview

Deprecated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, descriptor = nil) ⇒ ArrayHeader

Returns a new instance of ArrayHeader.



29
30
31
32
# File 'lib/types/array.rb', line 29

def initialize(type, descriptor = nil)
  Util::Deprecation.deprecated ArrayHeader, "UniformArray"
  @type, @descriptor = Codec::Mapping[type], descriptor
end

Instance Attribute Details

#descriptor (readonly)



33
34
35
# File 'lib/types/array.rb', line 33

def descriptor
  @descriptor
end

#type (readonly)



33
34
35
# File 'lib/types/array.rb', line 33

def type
  @type
end

Instance Method Details

#<=>(x)



35
# File 'lib/types/array.rb', line 35

def <=>(x) [@type, @descriptor] <=> [x.type, x.descriptor]; end

#described?Boolean

Returns:

  • (Boolean)


34
# File 'lib/types/array.rb', line 34

def described?() !@descriptor.nil?; end