Rose::Object::MakeMethods::Generic 0.84
Sponsored Links
Rose::Object::MakeMethods::Generic 0.84 Ranking & Summary
File size:
0.028 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
798
Date added:
2007-08-17
Publisher:
John C. Siracusa
Rose::Object::MakeMethods::Generic 0.84 description
Rose::Object::MakeMethods::Generic is a Perl module that can create simple object methods.
SYNOPSIS
package MyObject;
use Rose::Object::MakeMethods::Generic
(
scalar =>
[
power,
error,
],
scalar --get_set_init => name,
boolean --get_set_init => is_tall,
boolean =>
[
is_red,
is_happy => { default => 1 },
],
array =>
[
jobs => {},
job => { interface => get_set_item, hash_key => jobs },
clear_jobs => { interface => clear, hash_key => jobs },
reset_jobs => { interface => reset, hash_key => jobs },
],
hash =>
[
param => { hash_key => params },
params => { interface => get_set_all },
param_names => { interface => keys, hash_key => params },
param_values => { interface => values, hash_key => params },
param_exists => { interface => exists, hash_key => params },
delete_param => { interface => delete, hash_key => params },
clear_params => { interface => clear, hash_key => params },
reset_params => { interface => reset, hash_key => params },
],
);
sub init_name { Fred }
sub init_is_tall { 1 }
...
$obj = MyObject->new(power => 5);
print $obj->name; # Fred
$obj->do_something or die $obj->error;
$obj->is_tall; # true
$obj->is_tall(undef); # false (but defined)
$obj->is_tall; # false (but defined)
$obj->is_red; # undef
$obj->is_red(1234); # true
$obj->is_red(); # false (but defined)
$obj->is_red; # false (but defined)
$obj->is_happy; # true
$obj->params(a => 1, b => 2); # add pairs
$val = $obj->param(b); # 2
$obj->param_exists(x); # false
$obj->jobs(butcher, baker); # add values
$obj->job(0 => sailor); # set value
$job = $obj->job(0); # sailor
SYNOPSIS
package MyObject;
use Rose::Object::MakeMethods::Generic
(
scalar =>
[
power,
error,
],
scalar --get_set_init => name,
boolean --get_set_init => is_tall,
boolean =>
[
is_red,
is_happy => { default => 1 },
],
array =>
[
jobs => {},
job => { interface => get_set_item, hash_key => jobs },
clear_jobs => { interface => clear, hash_key => jobs },
reset_jobs => { interface => reset, hash_key => jobs },
],
hash =>
[
param => { hash_key => params },
params => { interface => get_set_all },
param_names => { interface => keys, hash_key => params },
param_values => { interface => values, hash_key => params },
param_exists => { interface => exists, hash_key => params },
delete_param => { interface => delete, hash_key => params },
clear_params => { interface => clear, hash_key => params },
reset_params => { interface => reset, hash_key => params },
],
);
sub init_name { Fred }
sub init_is_tall { 1 }
...
$obj = MyObject->new(power => 5);
print $obj->name; # Fred
$obj->do_something or die $obj->error;
$obj->is_tall; # true
$obj->is_tall(undef); # false (but defined)
$obj->is_tall; # false (but defined)
$obj->is_red; # undef
$obj->is_red(1234); # true
$obj->is_red(); # false (but defined)
$obj->is_red; # false (but defined)
$obj->is_happy; # true
$obj->params(a => 1, b => 2); # add pairs
$val = $obj->param(b); # 2
$obj->param_exists(x); # false
$obj->jobs(butcher, baker); # add values
$obj->job(0 => sailor); # set value
$job = $obj->job(0); # sailor
Rose::Object::MakeMethods::Generic 0.84 Screenshot
Advertisements
Rose::Object::MakeMethods::Generic 0.84 Keywords
MakeMethods
Generic 0.84
Simple object
Perl module
object methods
Can Create
hash
PARAMS
interface
key
param
jobs
Rose::Object::MakeMethods::Generic
RoseObjectMakeMethodsGeneric
Rose::Object::MakeMethods::Generic 0.84
Libraries
Bookmark Rose::Object::MakeMethods::Generic 0.84
Rose::Object::MakeMethods::Generic 0.84 Copyright
WareSeeker periodically updates pricing and software information of Rose::Object::MakeMethods::Generic 0.84 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Rose::Object::MakeMethods::Generic 0.84 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
tram param
interface fabrics
paramsx
wow interface
interface security
interfacelift
params.ini is unwritable
hashim thaqi
passing param variable through jcl
interface carpet tile
graphical user interface
paramount theater seattle
c# params
rosh hashanah
what is elmscan 5 usb interface
interface band
perl modules
javascript object methods
Related Software
Rose::Class::MakeMethods::Set is a Perl module to create class methods to manage sets. Free Download
Rose::Object is a simple object base class. Free Download
Rose::DB::Object::Helpers is a mix-in class containing convenience methods for Rose::DB::Object. Free Download
Class::MakeMethods::Template::Generic Perl module contains templates for common meta-method types. Free Download
Rose::DB::Object::Tutorial is a guided tour of the basics of Rose::DB::Object. Free Download
Rose::HTML::Objects is a Perl object-oriented interfaces for HTML. Free Download
Rose::DB::Object::QueryBuilder is a Perl module that can build SQL queries on behalf of Rose::DB::Object::Manager. Free Download
NetPacket::Ethernet is a Perl module to assemble and disassemble ethernet packets. Free Download
Latest Software
Popular Software
Favourite Software