~ubuntu-branches/debian/jessie/libperl5i-perl/jessie

« back to all changes in this revision

Viewing changes to lib/perl5i/2/Signature/None.pm

  • Committer: Bazaar Package Importer
  • Author(s): gregor herrmann, Jonathan Yu, gregor herrmann
  • Date: 2011-03-11 17:36:50 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110311173650-ehi4t5vp3anyf0hg
Tags: 2.6.0-1
[ Jonathan Yu ]
* New upstream release
* Standards-Version 3.9.1 (no changes)
* Bump to debhelper 8
* Add myself to Uploaders and Copyright
* Update dependencies per upstream
* No longer install README, it is autogenerated from pod2text
* Rewrite control description

[ gregor herrmann ]
* Add /me to Uploaders.
* Add build dependency on libtest-exception-perl.
* Add a patch to fix some spelling errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package perl5i::2::Signature::None;
 
2
 
 
3
use strict;
 
4
use warnings;
 
5
 
 
6
use overload
 
7
  q[""] => sub { return $_[0]->as_string },
 
8
  q[bool] => sub { 1 },  # always true, regardless of the actual signature string
 
9
  fallback => 1
 
10
;
 
11
 
 
12
sub new {
 
13
    my $class = shift;
 
14
    my %args = @_;
 
15
    return bless { signature => $args{signature} }, $class;
 
16
}
 
17
 
 
18
sub num_positional_params { 0 }
 
19
sub positional_params { return []; }
 
20
sub params { return []; }
 
21
sub make_real {}
 
22
 
 
23
sub as_string {
 
24
    my $self = shift;
 
25
    return $self->{signature};
 
26
}
 
27
 
 
28
1;