Rose::Object

Rose::Object is a simple object base class.
Download

Rose::Object Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • John C. Siracusa
  • Publisher web site:
  • http://search.cpan.org/~jsiracusa/

Rose::Object Tags


Rose::Object Description

Rose::Object is a simple object base class. Rose::Object is a simple object base class.SYNOPSIS package MyObject; use Rose::Object; our @ISA = qw(Rose::Object); sub foo { ... } sub bar { ... } ... my $o = MyObject->new(foo => 'abc', bar => 5); ...Rose::Object is a generic object base class. It provides very little functionality, but a healthy dose of convention.METHODSnew PARAMSConstructs a new, empty, hash-based object based on PARAMS, where PARAMS are name/value pairs, and then calls init (see below), passing PARAMS to it unmodified.init PARAMSGiven a list of name/value pairs in PARAMS, calls the object method of each name, passing the corresponding value as an argument. The methods are called in the order that they appear in PARAMS. For example: $o->init(foo => 1, bar => 2);is equivalent to the sequence: $o->foo(1); $o->bar(2); Requirements: · Perl


Rose::Object Related Software