The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Text::Amuse::Element - Helper for Text::Amuse

METHODS/ACCESSORS

Everything here is pretty much internal only, underdocumented and subject to change.

new($string)

Constructor. Accepts a string to be parsed

rawline

Accessor to the raw input line

will_not_merge

Attribute to mark if an element cannot be further merged

ACCESSORS

The following accessors set the value if an argument is provided.

block

The block the string belongs

type

The type

string

The string (without the indentation or the leading markup)

removed

The portion of the string stripped out

indentation

The indentation level, as a numerical value

HELPERS

is_start_block($blockname)

Return true if the element is a "startblock" of the required block name

is_stop_block($blockname)

Return true if the element is a "stopblock" of the required block name

is_regular_maybe

Return true if the element is "regular", i.e., it just have trailing white space

can_merge_next

Return true if the element will merge the next one

can_be_merged

Return true if the element will merge the next one. Only regular strings.

can_be_in_list

Return true if the element can be inside a list

can_be_regular

Return true if the element is quote, center, right

should_close_blocks

add_to_string($string, $other_string, [...])

Append (just concatenate) the given strings to the string attribute.