Class

SM::Line

Inheritance
< Object

Constants

Name   Description
BLANK = :BLANK
HEADING = :HEADING
INFINITY = 9999
LIST = :LIST
PARAGRAPH = :PARAGRAPH
RULE = :RULE
VERBATIM = :VERBATIM

Attributes

Name Visibility R/W Description
deleted public RW true if this line has been deleted from the list of lines
flag public RW A flag. For list lines, this is the type of the list
leading_spaces public RW the number of leading spaces
level public RW The indentation nesting level
param public RW A prefix or parameter. For LIST lines, this is the text that introduced the list item (the label)
text public RW The contents
type public RW line type

Methods

Class

Visibility Signature
public new (text)

Instance

Visibility Signature
public isBlank? ()
public stamp (type, level, param="", flag=nil)
public strip_leading (size)
public to_s ()

Class Method Detail

new(text)

Instance Method Detail

isBlank?()

Return true if this line is blank

stamp(type, level, param="", flag=nil)

stamp a line with a type, a level, a prefix, and a flag

strip_leading(size)

Strip off the leading margin

to_s()