Class: EnhanceRepo::RpmMd::Property
- Inherits:
-
Object
- Object
- EnhanceRepo::RpmMd::Property
- Defined in:
- lib/enhance_repo/rpm_md/suse_data.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(name) ⇒ Property
constructor
A new instance of Property.
Constructor Details
#initialize(name) ⇒ Property
Returns a new instance of Property.
31 32 33 |
# File 'lib/enhance_repo/rpm_md/suse_data.rb', line 31 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
30 31 32 |
# File 'lib/enhance_repo/rpm_md/suse_data.rb', line 30 def name @name end |
Instance Method Details
#eql?(other) ⇒ Boolean
39 40 41 |
# File 'lib/enhance_repo/rpm_md/suse_data.rb', line 39 def eql?(other) @name.eql?(other.name) end |
#hash ⇒ Object
35 36 37 |
# File 'lib/enhance_repo/rpm_md/suse_data.rb', line 35 def hash @name.hash end |