Class: Qpid::Proton::Types::ArrayHeader Deprecated
- Inherits:
-
Object
- Object
- Qpid::Proton::Types::ArrayHeader
- Includes:
- Comparable
- Defined in:
- lib/types/array.rb
Overview
Deprecated.
use UniformArray
Instance Attribute Summary collapse
- #descriptor readonly
- #type readonly
Instance Method Summary collapse
- #<=>(x)
- #described? ⇒ Boolean
-
#initialize(type, descriptor = nil) ⇒ ArrayHeader
constructor
A new instance of ArrayHeader.
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
34 |
# File 'lib/types/array.rb', line 34 def described?() !@descriptor.nil?; end |