Class: IceGrid::TemplateDescriptor
- Inherits:
-
Object
- Object
- IceGrid::TemplateDescriptor
- Includes:
- Ice::Inspect_mixin
- Defined in:
- lib/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.
457 458 459 460 461 |
# File 'lib/IceGrid/Descriptor.rb', line 457 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.
483 484 485 |
# File 'lib/IceGrid/Descriptor.rb', line 483 def descriptor @descriptor end |
#parameterDefaults ⇒ Object
Returns the value of attribute parameterDefaults.
483 484 485 |
# File 'lib/IceGrid/Descriptor.rb', line 483 def parameterDefaults @parameterDefaults end |
#parameters ⇒ Object
Returns the value of attribute parameters.
483 484 485 |
# File 'lib/IceGrid/Descriptor.rb', line 483 def parameters @parameters end |
Instance Method Details
#==(other) ⇒ Object
471 472 473 474 475 476 477 |
# File 'lib/IceGrid/Descriptor.rb', line 471 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
479 480 481 |
# File 'lib/IceGrid/Descriptor.rb', line 479 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
463 464 465 466 467 468 469 |
# File 'lib/IceGrid/Descriptor.rb', line 463 def hash _h = 0 _h = 5 * _h + @descriptor.hash _h = 5 * _h + @parameters.hash _h = 5 * _h + @parameterDefaults.hash _h % 0x7fffffff end |