Class: CenterLine

Inherits:
Object
  • Object
show all
Defined in:
lib/display.rb

Instance Method Summary collapse

Constructor Details

#initialize(w) ⇒ CenterLine

Returns a new instance of CenterLine.



20
21
22
23
24
25
26
# File 'lib/display.rb', line 20

def initialize(w)
  @window = w
  @interval = @window.update_interval
  @height = @window.height
  @width = @window.scope_width
  @font = Gosu::Font.new(12)
end

Instance Method Details

#drawObject



28
29
30
31
# File 'lib/display.rb', line 28

def draw
  line
  time
end