Class: Resyma::Core::Tuple2

Inherits:
Object
  • Object
show all
Defined in:
lib/resyma/core/algorithm/tuple.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_toObject

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

#pObject

Returns the value of attribute p.



22
23
24
# File 'lib/resyma/core/algorithm/tuple.rb', line 22

def p
  @p
end

#qObject

Returns the value of attribute q.



22
23
24
# File 'lib/resyma/core/algorithm/tuple.rb', line 22

def q
  @q
end