Class: Orbacle::GlobalTree::Mod

Inherits:
Object
  • Object
show all
Defined in:
lib/orbacle/global_tree.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, eigenclass_id = nil) ⇒ Mod

Returns a new instance of Mod.



55
56
57
58
# File 'lib/orbacle/global_tree.rb', line 55

def initialize(id, eigenclass_id = nil)
  @id = id
  @eigenclass_id = eigenclass_id
end

Instance Attribute Details

#eigenclass_idObject

Returns the value of attribute eigenclass_id.



60
61
62
# File 'lib/orbacle/global_tree.rb', line 60

def eigenclass_id
  @eigenclass_id
end

#idObject (readonly)

Returns the value of attribute id.



60
61
62
# File 'lib/orbacle/global_tree.rb', line 60

def id
  @id
end

Instance Method Details

#==(other) ⇒ Object



63
64
65
66
# File 'lib/orbacle/global_tree.rb', line 63

def ==(other)
  @id == other.id &&
    @eigenclass_id == other.eigenclass_id
end