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

NAME

Yukki::Model::FilePreview - a sub-class of the File model for handling previews

VERSION

version 0.140290

DESCRIPTION

This is a sub-class of Yukki::Model::File that replaces the fetch method with one that loads the content from a scalar attribute.

ATTRIBUTES

content

This is the content the file should have in the preview.

position

The position in the text for the caret.

METHODS

fetch

Returns the value of "content".

fetch_formatted

Same as in Yukki::Model::File, except that the default position is "position".

AUTHOR

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Qubling Software LLC.

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