/dports/devel/p5-Mouse/Mouse-v2.5.10/t/001_mouse/ |
H A D | 032-buildargs.t | 14 is_deeply( C->BUILDARGS(), {} ); 15 is_deeply( C->BUILDARGS(foo => 42), {foo => 42} ); 16 is_deeply( C->BUILDARGS(foo => 42, foo => 'bar'), {foo => 'bar'} ); 17 is_deeply( C->BUILDARGS({foo => 1, bar => 2}), {foo => 1, bar => 2} ); 20 my $args = C->BUILDARGS(\%hash); 25 $args = C->BUILDARGS(%hash); 30 C->BUILDARGS([]); 35 C->BUILDARGS([]); 47 sub BUILDARGS {
|
/dports/devel/p5-Moo/Moo-2.005004/t/ |
H A D | moo-object.t | 18 is_deeply +MyClass->BUILDARGS({foo => 'bar'}), {foo => 'bar'}, 19 'BUILDARGS: hashref accepted'; 20 is_deeply +MyClass->BUILDARGS(foo => 'bar'), {foo => 'bar'}, 21 'BUILDARGS: hash accepted'; 23 exception { MyClass->BUILDARGS('foo') }, 25 'BUILDARGS: non-hashref single element rejected'; 27 exception { MyClass->BUILDARGS(foo => 'bar', 5) }, 29 'BUILDARGS: odd number of elements rejected';
|
H A D | buildargs.t | 35 sub BUILDARGS { 50 sub BUILDARGS { 53 return $class->SUPER::BUILDARGS(@args); 69 around BUILDARGS => sub { 140 before BUILDARGS => sub { 146 NoAttr->BUILDARGS( 37 ); 149 "default BUILDARGS requires a list or a HASH ref" 154 is $NoAttr::buildargs_called, 1, 'BUILDARGS called even without attributes';
|
H A D | no-build.t | 12 my $args = $class->BUILDARGS(@_); 19 sub BUILDARGS { 44 sub BUILDARGS { 46 my $args = $class->SUPER::BUILDARGS(@_);
|
H A D | buildargs-error.t | 14 sub BUILDARGS { 23 qr/BUILDARGS did not return a hashref/,
|
/dports/devel/p5-Moose/Moose-2.2201/lib/Moose/Cookbook/Basics/ |
H A D | Person_BUILDARGSAndBUILD.pod | 2 # ABSTRACT: Using BUILDARGS and BUILD to hook into object construction 44 around BUILDARGS => sub { 67 This recipe demonstrates the use of C<BUILDARGS> and C<BUILD>. By 71 The C<BUILDARGS> method is called I<before> an object has been 77 The primary purpose of C<BUILDARGS> is to allow a class to accept 84 The key part of our C<BUILDARGS> is this conditional: 94 We call the original C<BUILDARGS> method to handle all the other 95 cases. You should always do this in your own C<BUILDARGS> methods, 96 since L<Moose::Object> provides its own C<BUILDARGS> method that 120 classes. This recipe shows how you can use C<BUILDARGS> and C<BUILD> [all …]
|
/dports/databases/percona-toolkit/percona-toolkit-3.3.0/t/lib/Lmo/ |
H A D | buildargs.t | 26 sub BUILDARGS { 29 $class->SUPER::BUILDARGS(@_); 41 sub BUILDARGS { 44 $class->SUPER::BUILDARGS(@_)
|
/dports/misc/gobuster/gobuster-3.1.0/ |
H A D | make.bat | 5 SET BUILDARGS=-ldflags="-s -w" -trimpath 107 go build %BUILDARGS% -o %DIR%\gobuster 112 go build %BUILDARGS% -o %DIR%\gobuster 124 go build %BUILDARGS% -o %DIR%\gobuster 129 go build %BUILDARGS% -o %DIR%\gobuster 141 go build %BUILDARGS% -o %DIR%\gobuster.exe 146 go build %BUILDARGS% -o %DIR%\gobuster.exe
|
/dports/devel/p5-MooseX-Singleton/MooseX-Singleton-0.30/t/ |
H A D | 004-build_bug.t | 17 sub BUILDARGS { 26 'BUILDARGS changed value of attrib when instance was auto-instantiated' 35 'BUILDARGS changed value of attrib when instance was explicitly instantiated'
|
H A D | 005-build_bug-immutable.t | 17 sub BUILDARGS { 28 'BUILDARGS changed value of attrib when instance was auto-instantiated' 37 'BUILDARGS changed value of attrib when instance was explicitly instantiated'
|
/dports/net-im/nextcloud-spreed-signaling/nextcloud-spreed-signaling-0.2.0/ |
H A D | Makefile | 15 BUILDARGS := -race macro 17 BUILDARGS := macro 91 …GOPATH=$(GOPATH) $(GO) build $(BUILDARGS) -ldflags '$(INTERNALLDFLAGS)' -o $(BINDIR)/client ./src/… 95 …GOPATH=$(GOPATH) $(GO) build $(BUILDARGS) -ldflags '$(INTERNALLDFLAGS)' -o $(BINDIR)/signaling ./s… 99 …GOPATH="$(GOPATH)" $(GO) build $(BUILDARGS) -ldflags '$(INTERNALLDFLAGS)' -o $(BINDIR)/proxy ./src…
|
/dports/databases/p5-Test-Cukes/Test-Cukes-0.11/lib/Test/Cukes/ |
H A D | Scenario.pm | 16 sub BUILDARGS { method in Test::Cukes::Scenario 36 return $class->SUPER::BUILDARGS(@_);
|
H A D | Feature.pm | 22 sub BUILDARGS { subroutine 51 return $class->SUPER::BUILDARGS(@_);
|
/dports/devel/p5-MooseX-NonMoose/MooseX-NonMoose-0.26/t/ |
H A D | BUILDARGS.t | 25 sub BUILDARGS { 29 return $class->SUPER::BUILDARGS(@_);
|
/dports/www/p5-HTTP-Headers-ActionPack/HTTP-Headers-ActionPack-0.09/lib/HTTP/Headers/ActionPack/Core/ |
H A D | Base.pm | 17 my $self = $class->CREATE( $class->BUILDARGS( @_ ) ); 22 sub BUILDARGS { +{ ref $_[0] eq 'HASH' ? %{ $_[0] } : @_ } } subroutine
|
/dports/devel/p5-Moose/Moose-2.2201/lib/Moose/Manual/ |
H A D | Construction.pod | 41 arguments. You can do this by creating C<BUILD> and/or C<BUILDARGS> 47 =head2 BUILDARGS section 49 The C<BUILDARGS> method is called as a class method I<before> an 56 One common use for C<BUILDARGS> is to accommodate a non-hash(ref) 61 Without a C<BUILDARGS> method, Moose will complain, because it expects 62 a hash or hash reference. We can use the C<BUILDARGS> method to 65 around BUILDARGS => sub { 77 Note the call to C<< $class->$orig >>. This will call the default C<BUILDARGS> 108 to the constructor (after munging by C<BUILDARGS>). This gives you a chance to
|
/dports/devel/p5-MouseX-Foreign/MouseX-Foreign-1.000/t/90-MooseX-NonMoose/ |
H A D | 021-BUILDARGS.t | 24 sub BUILDARGS { 28 return $class->SUPER::BUILDARGS(@_);
|
/dports/devel/p5-MouseX-Foreign/MouseX-Foreign-1.000/t/91-90-with-Any-Moose/ |
H A D | 021-BUILDARGS.t | 24 sub BUILDARGS { 28 return $class->SUPER::BUILDARGS(@_);
|
/dports/math/p5-GIS-Distance/GIS-Distance-0.19/lib/GIS/Distance/ |
H A D | Formula.pm | 16 my $args = $class->BUILDARGS( @_ ); 25 sub BUILDARGS { subroutine
|
/dports/mail/p5-Email-Sender/Email-Sender-1.300031/lib/Email/Sender/Transport/ |
H A D | Wrapper.pm | 37 sub BUILDARGS { method in Email::Sender::Transport::Wrapper 39 my $href = $self->SUPER::BUILDARGS(@_);
|
/dports/www/p5-Catalyst-Action-REST/Catalyst-Action-REST-1.21/lib/Catalyst/Action/REST/ |
H A D | ForBrowsers.pm | 9 sub BUILDARGS { subroutine 13 return $class->SUPER::BUILDARGS( $config, @_ );
|
/dports/devel/p5-MouseX-Foreign/MouseX-Foreign-1.000/t/ |
H A D | 03_mybigint.t | 27 sub BUILDARGS { 30 return $class->SUPER::BUILDARGS(@_);
|
/dports/devel/p5-Form-Sensible/Form-Sensible-0.20023/lib/Form/Sensible/Field/ |
H A D | SubForm.pm | 13 sub BUILDARGS { method in Form::Sensible::Field::SubForm 25 return $class->SUPER::BUILDARGS($args);
|
/dports/devel/p5-Object-Pad/Object-Pad-0.58/t/ |
H A D | 05subclass.t | 22 sub BUILDARGS { 24 return $self->SUPER::BUILDARGS( 8 );
|
/dports/devel/p5-MooseX-Traits-Pluggable/MooseX-Traits-Pluggable-0.12/t/ |
H A D | positional_args_and_hr.t | 17 sub BUILDARGS { 26 override BUILDARGS => sub {
|