Class: Nit::Line

Inherits:
String
  • Object
show all
Defined in:
lib/nit/lines.rb

Instance Method Summary collapse

Constructor Details

#initialize(string, screen) ⇒ Line

Returns a new instance of Line.



42
43
44
45
# File 'lib/nit/lines.rb', line 42

def initialize(string, screen)
  super(string)
  @screen = screen
end

Instance Method Details

#deleteObject

Deletes the entire line from the screen.



48
49
50
# File 'lib/nit/lines.rb', line 48

def delete
  @screen.delete(self)
end