Class::Accessor::Chained

Class::Accessor::Chained is a Perl module to make chained accessors.
Download

Class::Accessor::Chained Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Richard Clamp
  • Publisher web site:
  • http://search.cpan.org/~rclamp/

Class::Accessor::Chained Tags


Class::Accessor::Chained Description

Class::Accessor::Chained is a Perl module to make chained accessors. Class::Accessor::Chained is a Perl module to make chained accessors.SYNOPSIS package Foo; use base qw( Class::Accessor::Chained ); __PACKAGE__->mk_accessors(qw( foo bar baz )); my $foo = Foo->new->foo(1)->bar(2)->baz(4); print $foo->bar; # prints 2A chained accessor is one that always returns the object when called with parameters (to set), and the value of the field when called with no arguments.This module subclasses Class::Accessor in order to provide the same mk_accessors interface. Requirements: · Perl


Class::Accessor::Chained Related Software