Lines Matching refs:options

197 #pod   my $meta = CPAN::Meta->new($distmeta_struct, \%options);
203 #pod It takes an optional hashref of options. Valid options include:
220 my ($class, $struct, $options) = @_;
223 if ( $options->{lazy_validation} ) {
252 my ($class, $struct, $options) = @_;
253 my $self = eval { $class->_new($struct, $options) };
260 #pod my $meta = CPAN::Meta->create($distmeta_struct, \%options);
269 my ($class, $struct, $options) = @_;
273 my $self = eval { $class->_new($struct, $options) };
280 #pod my $meta = CPAN::Meta->load_file($distmeta_file, \%options);
287 #pod It takes the same options as C<new()> but C<lazy_validation> defaults to
293 my ($class, $file, $options) = @_;
294 $options->{lazy_validation} = 1 unless exists $options->{lazy_validation};
302 $self = $class->_new($struct, $options);
310 #pod my $meta = CPAN::Meta->load_yaml_string($yaml, \%options);
318 my ($class, $yaml, $options) = @_;
319 $options->{lazy_validation} = 1 unless exists $options->{lazy_validation};
324 $self = $class->_new($struct, $options);
332 #pod my $meta = CPAN::Meta->load_json_string($json, \%options);
340 my ($class, $json, $options) = @_;
341 $options->{lazy_validation} = 1 unless exists $options->{lazy_validation};
346 $self = $class->_new($struct, $options);
354 #pod my $meta = CPAN::Meta->load_string($string, \%options);
363 my ($class, $string, $options) = @_;
364 $options->{lazy_validation} = 1 unless exists $options->{lazy_validation};
369 $self = $class->_new($struct, $options);
377 #pod $meta->save($distmeta_file, \%options);
398 my ($self, $file, $options) = @_;
400 my $version = $options->{version} || '2';
412 my $data = $self->as_string( $options );
556 #pod my $copy = $meta->as_struct( \%options );
559 #pod reference. It takes an optional hashref of options. If the hashref contains
568 my ($self, $options) = @_;
570 if ( $options->{version} ) {
572 $struct = $cmc->convert( version => $options->{version} );
579 #pod my $string = $meta->as_string( \%options );
583 #pod of options. If the hashref contains a C<version> argument, the copied metadata
601 my ($self, $options) = @_;
603 my $version = $options->{version} || '2';
705 my $meta = CPAN::Meta->new($distmeta_struct, \%options);
711 It takes an optional hashref of options. Valid options include:
727 my $meta = CPAN::Meta->create($distmeta_struct, \%options);
735 my $meta = CPAN::Meta->load_file($distmeta_file, \%options);
742 It takes the same options as C<new()> but C<lazy_validation> defaults to
747 my $meta = CPAN::Meta->load_yaml_string($yaml, \%options);
754 my $meta = CPAN::Meta->load_json_string($json, \%options);
761 my $meta = CPAN::Meta->load_string($string, \%options);
769 $meta->save($distmeta_file, \%options);
842 my $copy = $meta->as_struct( \%options );
845 reference. It takes an optional hashref of options. If the hashref contains
853 my $string = $meta->as_string( \%options );
857 of options. If the hashref contains a C<version> argument, the copied metadata