~ubuntu-branches/ubuntu/vivid/libclass-meta-perl/vivid

« back to all changes in this revision

Viewing changes to lib/Class/Meta.pm

  • Committer: Bazaar Package Importer
  • Author(s): Peter Pentchev, Nathan Handler, gregor herrmann, Peter Pentchev
  • Date: 2011-02-25 01:56:19 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110225015619-tf7yn3satbkbs3r3
Tags: 0.63-2
[ Nathan Handler ]
* debian/watch: Update to ignore development releases.

[ gregor herrmann ]
* debian/control: Changed: (build-)depend on perl instead of perl-
  modules.
* Drop build dependency on "perl (>= 5.10) | libmodule-build-perl", already
  satisfied in lenny.

[ Peter Pentchev ]
* Convert to the 3.0 (quilt) source format with no changes.
* Depend on libclass-isa-perl | perl (<< 5.10.1-13).  Closes: #614410
* Refresh the copyright file:
  - refer to the GPL-1 file instead of the GPL symlink
  - update it to the latest DEP 5 candidate format
  - refer to Debian (not just GNU/Linux) systems
  - add my debian/* copyright notice
* Bump Standards-Version to 3.9.1 with no changes.
* Add spelling.patch to fix two spelling mistakes and a grammatical one.
* Bump the debhelper compatibility level to 8 with no changes and
  minimize the rules file.
* Drop the 5.8.0-7 version from the perl build dependency.
* Add myself to the list of uploaders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
      has  uuid => (
70
70
        authz    => 'READ',
71
71
        required => 1,
72
 
        deafult  => sub { Data::UUID->new->create_str },
 
72
        default  => sub { Data::UUID->new->create_str },
73
73
      );
74
 
      has name => ( rquired => 1         );
 
74
      has name => ( required => 1         );
75
75
      has age  => ( is      => 'integer' );
76
76
      method chk_pass => sub { ... }
77
77
  };
143
143
Class::Meta interface itself, well, read on!
144
144
 
145
145
I recommend that you create your Class::Meta classes in a C<BEGIN> block.
146
 
Although this is not strictly necessary, it helps to ensure that the classes
 
146
Although this is not strictly necessary, it helps ensure that the classes
147
147
you're building are completely constructed and ready to go by the time
148
148
compilation has completed. Creating classes with Class::Meta is easy, using
149
149
the Class::Meta object oriented interface. Here is an example of a very simple