Class: IceGrid::DistributionDescriptor
- Inherits:
-
Object
- Object
- IceGrid::DistributionDescriptor
- Defined in:
- lib/IceGrid/Descriptor.rb
Instance Attribute Summary collapse
-
#directories ⇒ Object
Returns the value of attribute directories.
-
#icepatch ⇒ Object
Returns the value of attribute icepatch.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(icepatch = '', directories = nil) ⇒ DistributionDescriptor
constructor
A new instance of DistributionDescriptor.
- #inspect ⇒ Object
Constructor Details
#initialize(icepatch = '', directories = nil) ⇒ DistributionDescriptor
Returns a new instance of DistributionDescriptor.
352 353 354 355 |
# File 'lib/IceGrid/Descriptor.rb', line 352 def initialize(icepatch='', directories=nil) @icepatch = icepatch @directories = directories end |
Instance Attribute Details
#directories ⇒ Object
Returns the value of attribute directories.
379 380 381 |
# File 'lib/IceGrid/Descriptor.rb', line 379 def directories @directories end |
#icepatch ⇒ Object
Returns the value of attribute icepatch.
379 380 381 |
# File 'lib/IceGrid/Descriptor.rb', line 379 def icepatch @icepatch end |
Instance Method Details
#==(other) ⇒ Object
364 365 366 367 368 369 |
# File 'lib/IceGrid/Descriptor.rb', line 364 def ==(other) return false if !other.is_a? ::IceGrid::DistributionDescriptor or @icepatch != other.icepatch or @directories != other.directories true end |
#eql?(other) ⇒ Boolean
371 372 373 |
# File 'lib/IceGrid/Descriptor.rb', line 371 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
357 358 359 360 361 362 |
# File 'lib/IceGrid/Descriptor.rb', line 357 def hash _h = 0 _h = 5 * _h + @icepatch.hash _h = 5 * _h + @directories.hash _h % 0x7fffffff end |
#inspect ⇒ Object
375 376 377 |
# File 'lib/IceGrid/Descriptor.rb', line 375 def inspect ::Ice::__stringify(self, T_DistributionDescriptor) end |