Class: SayItWithGraphs::Characters::Comma
- Inherits:
-
Object
- Object
- SayItWithGraphs::Characters::Comma
show all
- Includes:
- GraphControls
- Defined in:
- lib/say_it_with_graphs/characters/comma.rb
Instance Method Summary
collapse
#frame, #initialize, #rnd_line
Instance Method Details
#define ⇒ Object
6
7
8
|
# File 'lib/say_it_with_graphs/characters/comma.rb', line 6
def define
','
end
|
#draw ⇒ Object
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/say_it_with_graphs/characters/comma.rb', line 10
def draw
a = rnd_line
b = rnd_line
frame do |f|
f.line[a].at -10
f.line[a].at 0
f.line[b].at -10
end
frame do |f|
f.line[a].at 0
f.line[b].at 0
end
end
|