Class: IceGrid::DistributionDescriptor
- Inherits:
-
Object
- Object
- IceGrid::DistributionDescriptor
- Includes:
- Ice::Inspect_mixin
- 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.
Methods included from Ice::Inspect_mixin
Constructor Details
#initialize(icepatch = '', directories = nil) ⇒ DistributionDescriptor
Returns a new instance of DistributionDescriptor.
295 296 297 298 |
# File 'lib/IceGrid/Descriptor.rb', line 295 def initialize(icepatch='', directories=nil) @icepatch = icepatch @directories = directories end |
Instance Attribute Details
#directories ⇒ Object
Returns the value of attribute directories.
318 319 320 |
# File 'lib/IceGrid/Descriptor.rb', line 318 def directories @directories end |
#icepatch ⇒ Object
Returns the value of attribute icepatch.
318 319 320 |
# File 'lib/IceGrid/Descriptor.rb', line 318 def icepatch @icepatch end |
Instance Method Details
#==(other) ⇒ Object
307 308 309 310 311 312 |
# File 'lib/IceGrid/Descriptor.rb', line 307 def ==(other) return false if !other.is_a? ::IceGrid::DistributionDescriptor or @icepatch != other.icepatch or @directories != other.directories true end |
#eql?(other) ⇒ Boolean
314 315 316 |
# File 'lib/IceGrid/Descriptor.rb', line 314 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
300 301 302 303 304 305 |
# File 'lib/IceGrid/Descriptor.rb', line 300 def hash _h = 0 _h = 5 * _h + @icepatch.hash _h = 5 * _h + @directories.hash _h % 0x7fffffff end |