Class: Math::Geometry::Square

Inherits:
Rectangle show all
Defined in:
lib/ruuuby/math/geometry/shape/quadrilateral.rb

Instance Attribute Summary

Attributes inherited from PlaneFigure

#num_sides

Instance Method Summary collapse

Methods inherited from Rectangle

#interior_angles

Methods inherited from Quadrilateral

#area

Methods inherited from PlaneFigure

#sum_of_interior_angles

Constructor Details

#initialize(length) ⇒ Square

Returns a new instance of Square.

Parameters:



49
50
51
# File 'lib/ruuuby/math/geometry/shape/quadrilateral.rb', line 49

def initialize(length)
  super(length, length)
end