Class: Orbacle::GlobalTree::Mod
- Inherits:
-
Object
- Object
- Orbacle::GlobalTree::Mod
- Defined in:
- lib/orbacle/global_tree.rb
Instance Attribute Summary collapse
-
#eigenclass_id ⇒ Object
Returns the value of attribute eigenclass_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id, eigenclass_id = nil) ⇒ Mod
constructor
A new instance of Mod.
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_id ⇒ Object
Returns the value of attribute eigenclass_id.
60 61 62 |
# File 'lib/orbacle/global_tree.rb', line 60 def eigenclass_id @eigenclass_id end |
#id ⇒ Object (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 |