Class: Circle

Inherits:
Shape show all
Defined in:
lib/rcad.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Shape

#*, #+, #-, #align, #back, #bbox, #bottom, #center, #cx, #cy, #cz, #extrude, #front, #left, #maxx, #maxy, #maxz, #minx, #miny, #minz, #mirror, #mirror_x, #mirror_y, #mirror_z, #move, #move_x, #move_y, #move_z, #render, #revolve, #right, #rot_x, #rot_y, #rot_z, #rotate, #scale, #scale_x, #scale_y, #scale_z, #top, #transform, #xcenter, #xsize, #ycenter, #ysize, #zcenter, #zsize, #~@

Constructor Details

#initialize(dia) ⇒ Circle

Returns a new instance of Circle.



454
455
456
# File 'lib/rcad.rb', line 454

def initialize(dia)
  @dia = dia
end

Instance Attribute Details

#diaObject

Returns the value of attribute dia.



452
453
454
# File 'lib/rcad.rb', line 452

def dia
  @dia
end