From: Brandon L. Black Date: Tue, 20 Jun 2006 03:43:30 +0000 (+0000) Subject: add some pod coverage X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3fbd7eac4b844b516f1a0fccb4556437feff1020;p=dbsrgits%2FDBIx-Class-Historic.git add some pod coverage --- diff --git a/lib/DBIx/Class/InflateColumn.pm b/lib/DBIx/Class/InflateColumn.pm index d5791cb..de68b23 100644 --- a/lib/DBIx/Class/InflateColumn.pm +++ b/lib/DBIx/Class/InflateColumn.pm @@ -172,6 +172,14 @@ sub get_column { return $self->next::method($col); } +=head2 get_columns + +Returns the get_column info for all columns as a hash, +just like L. Handles inflation just +like L. + +=cut + sub get_columns { my $self = shift; if (exists $self->{_inflated_column}) { @@ -183,6 +191,13 @@ sub get_columns { return $self->next::method; } +=head2 has_column_loaded + +Like L, but also returns true if there +is an inflated value stored. + +=cut + sub has_column_loaded { my ($self, $col) = @_; return 1 if exists $self->{_inflated_column}{$col};