Class: Kata::Algorithms::SumOfThree

Inherits:
Struct
  • Object
show all
Defined in:
lib/kata/algorithms/sum_of_three/sum_of_three.rb

Direct Known Subclasses

SumOfThreeHash, SumOfThreeSort

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#array_of_integersObject

Returns the value of attribute array_of_integers



3
4
5
# File 'lib/kata/algorithms/sum_of_three/sum_of_three.rb', line 3

def array_of_integers
  @array_of_integers
end

Instance Method Details

#find_threeObject

Raises:

  • (NotImplementedError)


4
5
6
# File 'lib/kata/algorithms/sum_of_three/sum_of_three.rb', line 4

def find_three
  raise NotImplementedError.new("You have to implement this")
end