Method: Triangle#initialize

Defined in:
lib/shapedoc.rb

#initialize(s1, s2, s3, arg = Hash.new) ⇒ Triangle

Returns a new instance of Triangle.



53
# File 'lib/shapedoc.rb', line 53

def initialize(s1, s2, s3, arg = Hash.new); @base, @height, @sides = arg[:base], arg[:height], [s1, s2, s3]; end