Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.545.312 Times

Rose::Object::MakeMethods::Generic 0.84

  Date Added: April 03, 2010  |  Visits: 562

Rose::Object::MakeMethods::Generic

Report Broken Link
Printer Friendly Version


Product Homepage
Download (72 downloads)



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.

Requirements: No special requirements
Platforms: Linux
Keyword: Hash Interface Jobs Key Libraries Makemethods Param Params Perl Module Programming Roseobjectmakemethodsgeneric
Users rating: 0/10

License: Freeware Size: 28.67 KB
USER REVIEWS
More Reviews or Write Review


ROSE::OBJECT::MAKEMETHODS::GENERIC RELATED
Libraries  -  Class::MakeMethods::Template::Generic 1.01
Class::MakeMethods::Template::Generic Perl module contains templates for common meta-method types. SYNOPSIS package MyObject; use Class::MakeMethods ( Template::Hash:new => [ new ], Template::Hash:scalar => [ foo ] Template::Static:scalar...
153.6 KB  
Libraries  -  Params::Validate 0.88
Params::Validate is a Perl module to validate method/function parameters. SYNOPSIS use Params::Validate qw(:all); # takes named params (hash or hashref) sub foo { validate( @_, { foo => 1, # mandatory bar => 0, # optional } ); } #...
79.87 KB  
Libraries  -  DBIx::TableHash 1.05
DBIx::TableHash is a Perl module that can tie a hash to a mysql table + SQL utils. SYNOPSIS use DBIx::TableHash; my $DBHash = DBIx::TableHash->create_or_die (my $Params = { DBIDriver => mysql, Database => mydatabase, HostName =>...
17.41 KB  
Libraries  -  Tie::Proxy::Hash 1.01
Tie::Proxy::Hash is a Perl module created to efficiently merge & translate hashes. SYNOPSIS my (%hash, $ref); $ref = tie %hash, Tie::Proxy::Hash, (bart => +{a => 1, b => 2}, maggie => +{a => 5, c => 6, e => 10}, ); $hash{a} == 1; # true...
19.46 KB  
Libraries  -  Params::Profile 0.10
Params::Profile is a Perl module for registering Parameter profiles. SYNOPSIS package Foo::Bar; use Params::Profile; ### Single profile Params::Profile->register_profile( method => subroto, profile => { testkey1 => { required => 1 },...
6.14 KB  
Libraries  -  Search::Dict 5.8.8
Search::Dict is a Perl module to search for key in dictionary file. SYNOPSIS use Search::Dict; look *FILEHANDLE, $key, $dict, $fold; use Search::Dict; look *FILEHANDLE, $params; Sets file position in FILEHANDLE to be first line greater...
12.2 MB  
Libraries  -  Data::CGIForm 0.4
Data::CGIForm is a Perl module with form data interface. Data::CGIForm is yet another way to parse and handle CGI form data. The main motivation behind this module was a simple specification based validator that could handle multiple values....
12.29 KB  
Libraries  -  CGI::Expand 2.02
CGI::Expand is a Perl module that can convert flat hash to nested data using TT2s dot convention. SYNOPSIS use CGI::Expand; use CGI; # or Apache::Request, etc. $args = expand_cgi( CGI->new(a.0=3&a.2=4&b.c.0=x) ); # $args = { a =>...
8.19 KB  
Libraries  -  Class::MakeMethods::Docs::ToDo 1.01
Class::MakeMethods::Docs::ToDo is a Perl module with ideas, problems, and suggestions. SYNOPSIS There are lots of things that could be done to improve this module. DISTRIBUTION ISSUES Issues about the distribution and supporting files,...
153.6 KB  
Libraries  -  Set::Hash 0.01
Set::Hash is a Perl module with hashes as objects with lots of handy methods (including set comparisons) and support for method chaining. SYNOPSIS use Set::Hash; my $sh1 = Set::Hash->new(name=>"dan",age=>33); my $sh2 =...
7.17 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB