App-SimplenoteSync
view release on metacpan or search on metacpan
lib/App/SimplenoteSync/Note.pm view on Meta::CPAN
}
method save_content {
try {
my $fh = $self->file->open('w');
# data from simplenote should always be utf8
$fh->binmode(':utf8');
$fh->print($self->content);
}
catch {
$self->logger->error("Failed to write content to file: $_");
return;
};
return 1;
}
__PACKAGE__->meta->make_immutable;
1;
__END__
=pod
=encoding UTF-8
=for :stopwords Ioan Rogers Fletcher T. Penney github
=head1 NAME
App::SimplenoteSync::Note - stores notes in plain files,
=head1 VERSION
version 0.2.1
=head1 AUTHORS
=over 4
=item *
Ioan Rogers <ioanr@cpan.org>
=item *
Fletcher T. Penney <owner@fletcherpenney.net>
=back
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2021 by Ioan Rogers.
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991
=head1 BUGS AND LIMITATIONS
You can make new bug reports, and view existing ones, through the
web interface at L<https://github.com/ioanrogers/App-SimplenoteSync/issues>.
=head1 SOURCE
The development version is on github at L<https://github.com/ioanrogers/App-SimplenoteSync>
and may be cloned from L<git://github.com/ioanrogers/App-SimplenoteSync.git>
=cut
( run in 1.457 second using v1.01-cache-2.11-cpan-39bf76dae61 )