Class: TTK::Testers::Tester::Score
- Includes:
- Comparable
- Defined in:
- lib/ttk/testers/tester/score.rb
Instance Attribute Summary collapse
-
#score ⇒ Object
readonly
Returns the value of attribute score.
-
#tester ⇒ Object
readonly
Returns the value of attribute tester.
Instance Method Summary collapse
- #<=>(rhs) ⇒ Object
-
#initialize(score, tester) ⇒ Score
constructor
A new instance of Score.
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
#score ⇒ Object (readonly)
Returns the value of attribute score.
21 22 23 |
# File 'lib/ttk/testers/tester/score.rb', line 21 def score @score end |
#tester ⇒ Object (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 |