Class: IceGrid::PropertySetDescriptor
- Inherits:
-
Object
- Object
- IceGrid::PropertySetDescriptor
- Includes:
- Ice::Inspect_mixin
- Defined in:
- lib/IceGrid/Descriptor.rb
Instance Attribute Summary collapse
-
#properties ⇒ Object
Returns the value of attribute properties.
-
#references ⇒ Object
Returns the value of attribute references.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(references = nil, properties = nil) ⇒ PropertySetDescriptor
constructor
A new instance of PropertySetDescriptor.
Methods included from Ice::Inspect_mixin
Constructor Details
#initialize(references = nil, properties = nil) ⇒ PropertySetDescriptor
Returns a new instance of PropertySetDescriptor.
69 70 71 72 |
# File 'lib/IceGrid/Descriptor.rb', line 69 def initialize(references=nil, properties=nil) @references = references @properties = properties end |
Instance Attribute Details
#properties ⇒ Object
Returns the value of attribute properties.
92 93 94 |
# File 'lib/IceGrid/Descriptor.rb', line 92 def properties @properties end |
#references ⇒ Object
Returns the value of attribute references.
92 93 94 |
# File 'lib/IceGrid/Descriptor.rb', line 92 def references @references end |
Instance Method Details
#==(other) ⇒ Object
81 82 83 84 85 86 |
# File 'lib/IceGrid/Descriptor.rb', line 81 def ==(other) return false if !other.is_a? ::IceGrid::PropertySetDescriptor or @references != other.references or @properties != other.properties true end |
#eql?(other) ⇒ Boolean
88 89 90 |
# File 'lib/IceGrid/Descriptor.rb', line 88 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
74 75 76 77 78 79 |
# File 'lib/IceGrid/Descriptor.rb', line 74 def hash _h = 0 _h = 5 * _h + @references.hash _h = 5 * _h + @properties.hash _h % 0x7fffffff end |