Skip to content

Instantly share code, notes, and snippets.

View agentfin's full-sized avatar

alexis finch agentfin

View GitHub Profile
@agentfin
agentfin / kickass_triangle.rb
Created July 19, 2011 14:59
Ruby Koans about_triangle_project
def triangle(a, b, c)
if (a == b ) & (b == c )
return :equilateral
else
if a==b || b==c || c==a
return :isosceles
else
return :scalene
end
end