Class Instance
In functional programming, currying is a way to bind arguments with a function and wait for the rest of the arguments to show up later. You "curry in" the first few parameters to a function, giving you a function that takes subsequent parameters as input and calls the original with all of those...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (54): Associating parameters with a function Download |
Class::StrongSingleton is a stronger and more secure Singleton base class. SYNOPSIS package My::Singleton::Class; use base qw(Class::StrongSingleton); sub new { my ($class, %my_params) = @_; # create our object instance my $instance = { %my_params }; bless($instance, $class); # and...
Platforms: *nix
License: Freeware | Size: 6.14 KB | Download (96): Class::StrongSingleton Download |
Class::Declare::Attributes is a Perl module with Class::Declare method types using Perl attributes. SYNOPSIS package My::Class; use 5.006; use strict; use warnings; use base qw( Class::Declare::Attributes ); # declare the class/instance attributes __PACKAGE__->declare( ... ); # #...
Platforms: *nix
License: Freeware | Size: 21.5 KB | Download (93): Class::Declare::Attributes Download |
This script creates a unique instance of classes that uses Singleton as their metaclass. Used as a metaclass, Singleton replaces a class with a unique class instance. Any subsequent calls to the class's constructor will result in an exception, as the constructor is overwritten immediately after...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (65): Another Singleton Implementation Download |
This package provides a way to work with MIME content types. There are several interfaces defined here, many of which are used primarily to look things up based on different bits of information. The basic idea behind this is that content objects should provide an interface based on the actual...
Platforms: *nix
License: Freeware | Size: 61.44 KB | Download (41): zope.mimetype Download |
This script is a module for manipulating WinNT, Win2k & WinXP services. It contains the WService Class. The WService Class is used for controlling WinNT, Win2k & WinXP like services. Just pass the name of the service you wish to control to the class instance and go from there. For example, if you...
Platforms: Windows, Python,
License: Freeware | Download (51): Controlling Windows Services Download |
This script implements a base class, which allows derived classes to track instances in self.__instances__. It uses a WeakValueDictionary to store instance references.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (54): A class keeps a reference to it's instance Download |
This script implements class methods that do not require an object instance.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (50): Static or Class Methods Download |
Class::Observable is a Perl module that allows other classes and objects to respond to events in yours. SYNOPSIS # Define an observable class package My::Object; use base qw( Class::Observable ); # Tell all classes/objects observing this object that a state-change # has occurred sub...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (102): Class::Observable Download |
Class::DBI::FormBuilder is a Perl module with Class::DBI/CGI::FormBuilder integration. SYNOPSIS package Film; use strict; use warnings; use base Class::DBI; use Class::DBI::FormBuilder; # for indented output: # use Class::DBI::FormBuilder PrettyPrint => ALL; # POST all forms to...
Platforms: *nix
License: Freeware | Size: 46.08 KB | Download (89): Class::DBI::FormBuilder Download |
Class::IntrospectionMethods is a Perl module that creates methods with introspection. SYNOPSIS use Class::IntrospectionMethods qw/make_methods/; make_methods ( parent, global_catalog => { name => metacat, list => [ [qw/foo/] => f_cat, [qw/bar baz/] => b_cat, ], } new_with_init...
Platforms: *nix
License: Freeware | Size: 31.74 KB | Download (92): Class::IntrospectionMethods Download |
Class::DataStore is a Perl module for generic OO data storage/retrieval. SYNOPSIS my %values = ( one => 1, two => 2 ); my $store = Class::DataStore->new( %values ); # using get/set methods $store->set( three, 3 ); my $three = $store->get( three ); # using AUTOLOAD method $store->four(...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (89): Class::DataStore Download |
Class::Classgen::New is a Perl module that creates the new() method for classes generated by classgen. SYNOPSIS Used within classgen. The main purpose of New.pm is to write the new() method for a class generated by classgen. It provides code to derive local instance variables with my for...
Platforms: *nix
License: Freeware | Size: 24.58 KB | Download (93): Class::Classgen::New Download |
Class::Method::hash is a Perl module that helps you create methods for handling a hash value. SYNOPSIS use Class::MethodMaker [ hash => [qw/ x /] ]; $instance->x; # empty $instance->x(a => 1, b => 2, c => 3); $instance->x_count == 3; # true $instance->x = (b => 5, d => 8); # Note this...
Platforms: *nix
License: Freeware | Size: 89.09 KB | Download (105): Class::Method::hash Download |
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 => [ bar ] ); package main; my $obj =...
Platforms: *nix
License: Freeware | Size: 153.6 KB | Download (87): Class::MakeMethods::Template::Generic Download |
Class::NiceApi is a Perl module that translates your methodNames to my method_names. SYNOPSIS use Class::NiceApi; my $acl = Class::NiceApi->new( victim => Decision::ACL->new(), style => custom, table => { run_acl => RunACL } ); Perl method names should be written lowercased and multiple...
Platforms: *nix
License: Freeware | Size: 3.07 KB | Download (92): Class::NiceApi Download |
Class::Cloneable is a base class for Cloneable objects. SYNOPSIS package MyObject; our @ISA = (Class::Cloneable); # calling clone on an instance of MyObject # will give you full deep-cloning functionality This module provides a flexible base class for building objects with cloning...
Platforms: *nix
License: Freeware | Size: 8.19 KB | Download (101): Class::Cloneable Download |
Class::Generate is a Perl module that can generate Perl class hierarchies. SYNOPSIS use Class::Generate qw(class subclass delete_class); # Declare class Class_Name, with the following types of members: class Class_Name => [ s => $, # scalar a => @, # array h => %, # hash c => Class, #...
Platforms: *nix
License: Freeware | Size: 53.25 KB | Download (96): Class::Generate Download |
Class::DispatchToAll Perl module can dispatch a method call to all inherited methods. SYNOPSIS package My::Class; our @ISA=qw(SomeClass SomeOtherClass More::Classes); use Class::DispatchToAll qw(dispatch_to_all); my $self=bless {},My::Class # not a proper constructor, I know.. # this...
Platforms: *nix
License: Freeware | Size: 5.12 KB | Download (88): Class::DispatchToAll Download |
The PHP RSS class is designed to automatically parse and format rss feeds from any url, including caching of the feeds. This is based off an old version of the Magpie RSS PHP Reader.Features: - Declare an instance of the rss class and pass it any url or local file - Arranges channel and item...
Platforms: Windows, Mac, *nix, PHP, BSD Solaris
License: Freeware | Download (51): RSS PHP Class Download |