| Class | InLine::Line |
| In: |
lib/inline/line.rb
|
| Parent: | Object |
The Line class is used to represent the current line being processed and edited by InLine::Editor. It keeps track of the characters typed, the cursor position, the current word and maintains an internal history to allow undos and redos.
| history | [RW] | |
| history_size | [RW] | |
| offset | [R] | |
| position | [RW] | |
| prompt | [RW] | |
| text | [RW] | |
| word_separator | [RW] |
Create an instance of InLine::Line. This method takes an optional block used to override the following instance attributes: