NAME
Lingua::famibeib::Fragment - module to interact with the famibeib fragments
VERSION
version v0.01
SYNOPSIS
use Lingua::famibeib::Fragment;
This module inherits from Data::Identifier::Interface::Subobjects.
new
my Lingua::famibeib::Fragment $fragment = Lingua::famibeib::Fragment->new($type => $value);
# e.g.:
my Lingua::famibeib::Fragment $fragment = Lingua::famibeib::Fragment->new(words => [...]);
(since v0.01)
Creates a new fragment instance. A fragment is any string of words.
Currently the following types ($type) are supported:
words-
Constructs a fragment from an arrayref of words (instances of Lingua::famibeib::Word, or parsed as per "new" in Lingua::famibeib::Word's
from).
words
my @words = $fragment->words;
(since v0.01)
Returns the list of words as found in the fragment.
as_string
my $str = $fragment->as_string;
(since v0.01)
Returns the current fragment as a string.
AUTHOR
Löwenfelsen UG (haftungsbeschränkt) <support@loewenfelsen.net>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2025 by Löwenfelsen UG (haftungsbeschränkt) <support@loewenfelsen.net>.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)