Class: Nit::Line
- Inherits:
-
String
- Object
- String
- Nit::Line
- Defined in:
- lib/nit/lines.rb
Instance Method Summary collapse
-
#delete ⇒ Object
Deletes the entire line from the screen.
-
#initialize(string, screen) ⇒ Line
constructor
A new instance of Line.
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
#delete ⇒ Object
Deletes the entire line from the screen.
47 48 49 |
# File 'lib/nit/lines.rb', line 47 def delete @screen.delete(self) end |