jastix (owner)

Revisions

gist: 170910 Download_button fork
public
Public Clone URL: git://gist.github.com/170910.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class Figure
 
  def initialize
 
  end
 
  def rotate
 
  end
 
  def play
 
  end
 
end
 
class Square < Figure
  def initialize([x1,y1],[x2,y2])
    
  end
end
 
class Circle < Figure
  def initialize([x,y],radius)
    super
  end
end
 
class Triangle < Figure
  def initialize([x1,y1],[x2,y2],[x3,y3])
    
  end
end