1) Very good. Now you should try to determine what "Ruby on Rails" is,
and whether your questions have anything to do with Ruby on Rails.
2) Read a tutorial on ruby exception handling, or better yet buy the
book "Beginning Ruby":
http://beginningruby.org/
and read that before trying to do the
Hello,
I found this solution :
# about_triangle_project.rb
# and
# about_triangle_project_2.rb
#
def triangle(a, b, c)
raise (TriangleError), "length cannnot be 0 or lesser" if (a <= 0) or (b
<= 0) or (c <= 0);
raise (TriangleError), "length does not match Pyschotorogas" if (a * a +
2 matches
Mail list logo