Class: Ent
Direct Known Subclasses
Instance Attribute Summary collapse
-
#entry ⇒ Object
readonly
Returns the value of attribute entry.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
-
#initialize(name, ent) ⇒ Ent
constructor
A new instance of Ent.
Constructor Details
#initialize(name, ent) ⇒ Ent
Returns a new instance of Ent.
66 67 68 69 |
# File 'lib/bitclust/ridatabase.rb', line 66 def initialize(name, ent) @name = name @entry = ent end |
Instance Attribute Details
#entry ⇒ Object (readonly)
Returns the value of attribute entry.
72 73 74 |
# File 'lib/bitclust/ridatabase.rb', line 72 def entry @entry end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
71 72 73 |
# File 'lib/bitclust/ridatabase.rb', line 71 def name @name end |
Instance Method Details
#<=>(other) ⇒ Object
85 86 87 |
# File 'lib/bitclust/ridatabase.rb', line 85 def <=>(other) @name <=> other.name end |
#==(other) ⇒ Object Also known as: eql?
74 75 76 77 |
# File 'lib/bitclust/ridatabase.rb', line 74 def ==(other) return false if self.class != other.class @name == other.name end |
#hash ⇒ Object
81 82 83 |
# File 'lib/bitclust/ridatabase.rb', line 81 def hash @name.hash end |