Class: IceGrid::TemplateDescriptor
- Inherits:
-
Object
- Object
- IceGrid::TemplateDescriptor
- Includes:
- Ice::Inspect_mixin
- Defined in:
- ruby/IceGrid/Descriptor.rb
Instance Attribute Summary collapse
-
#descriptor ⇒ Object
Returns the value of attribute descriptor.
-
#parameterDefaults ⇒ Object
Returns the value of attribute parameterDefaults.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(descriptor = nil, parameters = nil, parameterDefaults = nil) ⇒ TemplateDescriptor
constructor
A new instance of TemplateDescriptor.
Methods included from Ice::Inspect_mixin
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
#descriptor ⇒ Object
Returns the value of attribute descriptor.
462 463 464 |
# File 'ruby/IceGrid/Descriptor.rb', line 462 def descriptor @descriptor end |
#parameterDefaults ⇒ Object
Returns the value of attribute parameterDefaults.
462 463 464 |
# File 'ruby/IceGrid/Descriptor.rb', line 462 def parameterDefaults @parameterDefaults end |
#parameters ⇒ Object
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
458 459 460 |
# File 'ruby/IceGrid/Descriptor.rb', line 458 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
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 |