I\'m going through the ruby koans, I\'m on 151 and I just hit a brick wall.
Here is the koan:
# You need to write the triangle method in the file \'trian
Ended up doing this:
def triangle(a, b, c) a, b, c = [a, b, c].sort raise TriangleError if a <= 0 || a + b <= c [nil, :equilateral, :isosceles, :scalene][[a, b, c].uniq.size] end
Thanks to commenters here :)