Class Lisp::Format::State
In: lib/facet/lisp-format.rb
Parent: Object

This class represents the state of a given Formatter. It keeps track of output gathered and arguments left to be processed.

Methods

Attributes

case_conv  [RW] 

Public Class methods

Create a state from arguments and a destination output

Public Instance methods

Get the number of arguments left to process

Move n steps forward or backward depending on sign amongst the arguments. Movement is relative or absolute depending on the boolean value of relative.

Retrieve the current output column.

Retrieve the latest output buffer.

Get the current argument and move forward one argument.

Delegates output to the top-most output buffer.

Pop and return the latest output buffer.

Get the previously returned argument, without moving.

Push back the previously returned argument.

Push a new Output buffer to collect output in.

[Validate]