- Inheritance
-
< Object
A Fragment is a chunk of text, subclassed as a
paragraph, a list entry, or verbatim text
Constants
Name |
|
Description |
TYPE_MAP |
= {} |
This is a simple factory system that lets us associate fragement types (a
string) with a subclass of fragment
|
Attributes
Name |
Visibility |
R/W |
Description |
level |
public |
R |
|
param |
public |
R |
|
txt |
public |
R |
|
type |
public |
RW |
|
Methods
Class
Visibility |
Signature |
public |
for (line) |
public |
new (level, param, type, txt) |
public |
type_name (name) |
Instance
Class Method Detail
for(line)
new(level, param, type, txt)
type_name(name)
Instance Method Detail
add_text(txt)
to_s()