Class: CodeJam::TestCase
- Inherits:
-
Object
- Object
- CodeJam::TestCase
- Defined in:
- lib/codejam/testcase.rb
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #fun ⇒ Object
-
#initialize(input) ⇒ TestCase
constructor
A new instance of TestCase.
- #run ⇒ Object
Constructor Details
#initialize(input) ⇒ TestCase
Returns a new instance of TestCase.
6 7 8 |
# File 'lib/codejam/testcase.rb', line 6 def initialize(input) @input = input end |
Instance Attribute Details
#input ⇒ Object (readonly)
Returns the value of attribute input.
4 5 6 |
# File 'lib/codejam/testcase.rb', line 4 def input @input end |
Instance Method Details
#==(other) ⇒ Object
18 19 20 |
# File 'lib/codejam/testcase.rb', line 18 def ==(other) self.input == other.input end |
#fun ⇒ Object
14 15 16 |
# File 'lib/codejam/testcase.rb', line 14 def fun input #default behaviour is echo end |
#run ⇒ Object
10 11 12 |
# File 'lib/codejam/testcase.rb', line 10 def run fun end |