Class: IceGrid::TemplateDescriptor

Inherits:
Object
  • Object
show all
Includes:
Ice::Inspect_mixin
Defined in:
ruby/IceGrid/Descriptor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Ice::Inspect_mixin

#inspect

Constructor Details

#initialize(descriptor = nil, parameters = nil, parameterDefaults = nil) ⇒ TemplateDescriptor

Returns a new instance of TemplateDescriptor.



436
437
438
439
440
# File 'ruby/IceGrid/Descriptor.rb', line 436

def initialize(descriptor=nil, parameters=nil, parameterDefaults=nil)
    @descriptor = descriptor
    @parameters = parameters
    @parameterDefaults = parameterDefaults
end

Instance Attribute Details

#descriptorObject

Returns the value of attribute descriptor.



462
463
464
# File 'ruby/IceGrid/Descriptor.rb', line 462

def descriptor
  @descriptor
end

#parameterDefaultsObject

Returns the value of attribute parameterDefaults.



462
463
464
# File 'ruby/IceGrid/Descriptor.rb', line 462

def parameterDefaults
  @parameterDefaults
end

#parametersObject

Returns the value of attribute parameters.



462
463
464
# File 'ruby/IceGrid/Descriptor.rb', line 462

def parameters
  @parameters
end

Instance Method Details

#==(other) ⇒ Object



450
451
452
453
454
455
456
# File 'ruby/IceGrid/Descriptor.rb', line 450

def ==(other)
    return false if !other.is_a? ::IceGrid::TemplateDescriptor or
        @descriptor != other.descriptor or
        @parameters != other.parameters or
        @parameterDefaults != other.parameterDefaults
    true
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


458
459
460
# File 'ruby/IceGrid/Descriptor.rb', line 458

def eql?(other)
    return other.class == self.class && other == self
end

#hashObject



442
443
444
445
446
447
448
# File 'ruby/IceGrid/Descriptor.rb', line 442

def hash
    _h = 0
    _h = 5 * _h + @descriptor.hash
    _h = 5 * _h + @parameters.hash
    _h = 5 * _h + @parameterDefaults.hash
    _h % 0x7fffffff
end