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.


65
66
67
68
# File 'lib/bitclust/ridatabase.rb', line 65

def initialize(name, ent)
  @name = name
  @entry = ent
end

Instance Attribute Details

#entryObject (readonly)

Returns the value of attribute entry


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

def entry
  @entry
end

#nameObject (readonly)

Returns the value of attribute name


70
71
72
# File 'lib/bitclust/ridatabase.rb', line 70

def name
  @name
end

Instance Method Details

#<=>(other) ⇒ Object


83
84
85
# File 'lib/bitclust/ridatabase.rb', line 83

def <=>(other)
  @name <=> other.name
end

#==(other) ⇒ Object Also known as: eql?


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

def ==(other)
  @name == other.name
end

#hashObject


79
80
81
# File 'lib/bitclust/ridatabase.rb', line 79

def hash
  @name.hash
end