Class: Resyma::Core::Tuple2
- Inherits:
-
Object
- Object
- Resyma::Core::Tuple2
- Defined in:
- lib/resyma/core/algorithm/tuple.rb
Instance Attribute Summary collapse
-
#belongs_to ⇒ Object
Returns the value of attribute belongs_to.
-
#p ⇒ Object
Returns the value of attribute p.
-
#q ⇒ Object
Returns the value of attribute q.
Instance Method Summary collapse
-
#initialize(p, q, belongs_to: 0) ⇒ Tuple2
constructor
A new instance of Tuple2.
Constructor Details
#initialize(p, q, belongs_to: 0) ⇒ Tuple2
Returns a new instance of Tuple2.
16 17 18 19 20 |
# File 'lib/resyma/core/algorithm/tuple.rb', line 16 def initialize(p, q, belongs_to: 0) @p = p @q = q @belongs_to = belongs_to end |
Instance Attribute Details
#belongs_to ⇒ Object
Returns the value of attribute belongs_to.
22 23 24 |
# File 'lib/resyma/core/algorithm/tuple.rb', line 22 def belongs_to @belongs_to end |
#p ⇒ Object
Returns the value of attribute p.
22 23 24 |
# File 'lib/resyma/core/algorithm/tuple.rb', line 22 def p @p end |
#q ⇒ Object
Returns the value of attribute q.
22 23 24 |
# File 'lib/resyma/core/algorithm/tuple.rb', line 22 def q @q end |