Config of a Store
Kjetil Kjernsmo
kjetil at kjernsmo.net
Mon Jun 28 10:02:41 CEST 2010
On Monday 28. June 2010 09:15:51 Toby Inkster wrote:
> sub _new_from_object
> {
> my ($class, $object) = @_;
> if (ref $object eq 'HASH' && lc $object->{'store'} eq 'mystore')
> {
> my $self = bless {}, $class;
> # do stuff with details in $object
> return $self;
> }
> return undef;
> }
Yeah, I can see that, but it would still diverge from the original intention
of new_from_object, which I now appreciate, which is to pass stuff like DBI::db
and RDF::Redland::Model. I think the distinction is useful. Besides, it is now
done, and it's less work to do it may way... :-)
Cheers,
Kjetil
More information about the Dev
mailing list