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.



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

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

Instance Method Details

#deleteObject

Deletes the entire line from the screen.



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

def delete
  @screen.delete(self)
end