- Inheritance
- < Object
Simple class to read lines out of a string
Methods
Class
| Visibility | Signature |
|---|---|
| public | new (lines) |
Instance
| Visibility | Signature |
|---|---|
| public | dup () |
| public | read () |
| public | read_up_to (pattern) |
Class Method Detail
new(lines)
we‘re initialized with an array of lines
Instance Method Detail
dup()
Return a copy of ourselves that can be modified without affecting us
read()
read the next line
read_up_to(pattern)
Return a list of lines up to the line that matches a pattern. That last line is discarded.