Class: Ent

Inherits:
Object show all
Defined in:
lib/bitclust/ridatabase.rb

Direct Known Subclasses

BCMethodEntry, RiMethodEntry

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#entryObject (readonly)

Returns the value of attribute entry.



72
73
74
# File 'lib/bitclust/ridatabase.rb', line 72

def entry
  @entry
end

#nameObject (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

#hashObject



81
82
83
# File 'lib/bitclust/ridatabase.rb', line 81

def hash
  @name.hash
end