| Markdent documentation | Contained in the Markdent distribution. |
Markdent::Event::Image - An event for an image
version 0.17
This class represents an image.
This class has the following attributes:
The uri for the image.
The alt text for the image.
The image title. This is optional.
The image's id. This is optional.
This will be true if the image's id was not specified explicitly in the Markdown text.
This class does the Markdent::Role::Event role.
See Markdent for bug reporting details.
Dave Rolsky <autarch@urth.org>
This software is copyright (c) 2010 by Dave Rolsky.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| Markdent documentation | Contained in the Markdent distribution. |
package Markdent::Event::Image; BEGIN { $Markdent::Event::Image::VERSION = '0.17'; } use strict; use warnings; use Markdent::Types qw( Str Bool ); use namespace::autoclean; use Moose; use MooseX::StrictConstructor; has uri => ( is => 'ro', isa => Str, required => 1, ); has alt_text => ( is => 'ro', isa => Str, required => 1, ); has title => ( is => 'ro', isa => Str, predicate => 'has_title', ); has id => ( is => 'ro', isa => Str, predicate => 'has_id', ); has is_implicit_id => ( is => 'ro', isa => 'Bool', default => 0, ); with 'Markdent::Role::Event'; __PACKAGE__->meta()->make_immutable(); 1; # ABSTRACT: An event for an image
__END__