Class: TTK::Testers::Tester::Score

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
lib/ttk/testers/tester/score.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(score, tester) ⇒ Score

Returns a new instance of Score.



16
17
18
19
# File 'lib/ttk/testers/tester/score.rb', line 16

def initialize(score, tester)
  @score = score
  @tester = tester
end

Instance Attribute Details

#scoreObject (readonly)

Returns the value of attribute score.



21
22
23
# File 'lib/ttk/testers/tester/score.rb', line 21

def score
  @score
end

#testerObject (readonly)

Returns the value of attribute tester.



21
22
23
# File 'lib/ttk/testers/tester/score.rb', line 21

def tester
  @tester
end

Instance Method Details

#<=>(rhs) ⇒ Object



23
24
25
# File 'lib/ttk/testers/tester/score.rb', line 23

def <=>(rhs)
  @score <=> rhs.score
end