Group
Extension

Matches 3

App-Pebble ( J/JO/JOHANL/App-Pebble-0.008-TRIAL.tar.gz, JOHANL, 2011; MetaCPAN )
App-Pebble/lib/App/Pebble.pm ( view source; MetaCPAN )
arse matching lines into objects with named attributes.
  # The default output format is one-line JSON.
  cat lib/App/Pebble.pm | \
  p 'P->match( regex => qr/^=head(\d+)\s+(.+)/, has => ["level", "te
App-Pebble ( J/JO/JOHANL/App-Pebble-0.008-TRIAL.tar.gz, JOHANL, 2011; MetaCPAN )
App-Pebble/lib/App/Pebble/Helpers/DateTime/Duration.pm ( view source; MetaCPAN )
ration helpers.

=head1 DESCRIPTION

Support DateTime::Duration "natively" by making sure they TO_JSON-ify
properly, and provide some useful extra helper methods.

=cut

package App::Pebble::Helpers::


no warnings "redefine";

=head2 METHODS

=cut

# Needed by Pebble::Object and JSON::XS
sub DateTime::Duration::TO_JSON {
    my $self = shift;
    ###TODO: replace with format duration
    $self->in
App-Pebble ( J/JO/JOHANL/App-Pebble-0.008-TRIAL.tar.gz, JOHANL, 2011; MetaCPAN )
App-Pebble/lib/App/Pebble/Helpers/DateTime.pm ( view source; MetaCPAN )
DateTime helpers.

=head1 DESCRIPTION

Support DateTime objects "natively" by making sure they TO_JSON-ify
properly, and provide some useful helper methods.

=cut

package App::Pebble::Helpers::DateTi
ings;

use DateTime;
use Carp;

=head2 METHODS

=cut

# Needed by Pebble::Object and JSON::XS
sub DateTime::TO_JSON {
    my $self = shift;
    "$self";
}

=head2 DateTime::round( $to_unit = "day" ) :

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.