NAME

Buffer::Transactional::Buffer - A role to represent a buffer

DESCRIPTION

This is a role to represent our buffer types.

METHODS

put ( @items )

This method is required, it is used to add elements to the buffer.

as_string

This method is required, it is used to collapse a buffer into a string.

subsume ( $buffer )

This method has a minimal implementation which simply puts the results of calling to_string on the $buffer arg into the local buffer. Feel free to override this if it is not appropriate, see Buffer::Transactional::Buffer::Lazy for an example of this.

BUGS

All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.

AUTHOR

Stevan Little <stevan.little@iinteractive.com>

COPYRIGHT AND LICENSE

Copyright 2009, 2010 Infinity Interactive, Inc.

http://www.iinteractive.com

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.