Ruby latest stable (v2_5_5)
-
0 notes
- Superclass:
Object
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378 (0)
- 1_9_2_180
- 1_9_3_125
- 1_9_3_392
- 2_1_10
- 2_2_9
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
We store the lines we’re working on as objects of class Line. These contain the text of the line, along with a flag indicating the line type, and an indentation level.
Constants
INFINITY = 9999
LINE_TYPES = [ :BLANK, :HEADING, :LIST, :PARAGRAPH, :RULE, :VERBATIM, ]
Attributes
[RW] | type |
line type |
[RW] | level |
The indentation nesting level |
[RW] | text |
The contents |
[RW] | param |
A prefix or parameter. For LIST lines, this is the text that introduced the list item (the label) |
[RW] | flag |
A flag. For list lines, this is the type of the list |
[RW] | leading_spaces |
the number of leading spaces |
[RW] | deleted |
true if this line has been deleted from the list of lines |