class SayItWithGraphs::Characters::Dash

Public Instance Methods

define() click to toggle source
# File lib/say_it_with_graphs/characters/dash.rb, line 6
def define
  '-'
end
draw() click to toggle source
# File lib/say_it_with_graphs/characters/dash.rb, line 10
def draw
  a = rnd_line
  b = rnd_line
  frame do |f|
    f.line[a].at 45
    f.line[a].at 55
    f.line[b].at 45
  end
  frame {  }
  frame do |f|
    f.line[a].at 55
    f.line[b].at 45
    f.line[b].at 55
  end
end