ClassAccessorAssert 141

ClassAccessorAssert 141
  • Downloads: 338
  • Requirements:
  • Size:
  • Licence:
  • Version: 1.41
  • Added At: 2012-29-05
  • Publisher Site:



ClassAccessorAssert 141

Share

Class::Accessor::Assert is a version of Class::Accessor which offers rudimentary type-checking and existence-checking of arguments to constructors and set accessors.To specify that a member is mandatory in the constructor, prefix its name with a +. To specify that it needs to be of a certain class when setting that member, suffix =CLASSNAME. Unblessed reference types such as =HASH or =ARRAY are acceptable.To specify that a member is an array, prefix its name with a @. These members also have the following four special methods that wrap the builtin array operations push, pop, unshift, and shift: # for a @bits member:  $y->bits_push(@new_values); print $y->bits_pop;  $y->bits_unshift(@new_values); print $y->bits_shift;The @ can be combined with the + prefix to make a member that is an array that you must set
Class::Accessor::Assert is a version of Class::Accessor which offers rudimentary type-checking and existence-checking of arguments to constructors and set accessors.To specify that a member is mandatory in the constructor, prefix its name with a +. To specify that it needs to be of a certain class when setting that member, suffix =CLASSNAME. Unblessed reference types such as =HASH or =ARRAY are acceptable.To specify that a member is an array, prefix its name with a @. These members also have the following four special methods that wrap the builtin array operations push, pop, unshift, and shift: # for a @bits member:  $y->bits_push(@new_values); print $y->bits_pop;  $y->bits_unshift(@new_values); print $y->bits_shift;The @ can be combined with the + prefix to make a member that is an array that you must set �. you can free download ClassAccessorAssert 141 now.
Soft85 only provide legal software, please help us keeping pur site legal, if you think this page is violating copyrights please let us know by clicking here Here






comments powered by Disqus

Download ClassAccessorAssert 141 _FREE_