Class: CenterLine
- Inherits:
-
Object
- Object
- CenterLine
- Defined in:
- lib/display.rb
Instance Method Summary collapse
- #draw ⇒ Object
-
#initialize(w) ⇒ CenterLine
constructor
A new instance of CenterLine.
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
#draw ⇒ Object
28 29 30 31 |
# File 'lib/display.rb', line 28 def draw line time end |