Class: IceGrid::PropertySetDescriptor
- Inherits:
-
Object
- Object
- IceGrid::PropertySetDescriptor
- 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.
- #inspect ⇒ Object
Constructor Details
#initialize(references = nil, properties = nil) ⇒ PropertySetDescriptor
Returns a new instance of PropertySetDescriptor.
76 77 78 79 |
# File 'lib/IceGrid/Descriptor.rb', line 76 def initialize(references=nil, properties=nil) @references = references @properties = properties end |
Instance Attribute Details
#properties ⇒ Object
Returns the value of attribute properties.
103 104 105 |
# File 'lib/IceGrid/Descriptor.rb', line 103 def properties @properties end |
#references ⇒ Object
Returns the value of attribute references.
103 104 105 |
# File 'lib/IceGrid/Descriptor.rb', line 103 def references @references end |
Instance Method Details
#==(other) ⇒ Object
88 89 90 91 92 93 |
# File 'lib/IceGrid/Descriptor.rb', line 88 def ==(other) return false if !other.is_a? ::IceGrid::PropertySetDescriptor or @references != other.references or @properties != other.properties true end |
#eql?(other) ⇒ Boolean
95 96 97 |
# File 'lib/IceGrid/Descriptor.rb', line 95 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
81 82 83 84 85 86 |
# File 'lib/IceGrid/Descriptor.rb', line 81 def hash _h = 0 _h = 5 * _h + @references.hash _h = 5 * _h + @properties.hash _h % 0x7fffffff end |
#inspect ⇒ Object
99 100 101 |
# File 'lib/IceGrid/Descriptor.rb', line 99 def inspect ::Ice::__stringify(self, T_PropertySetDescriptor) end |