App-RecordStream
view release on metacpan or search on metacpan
lib/App/RecordStream/DomainLanguage/Valuation/KeySpec.pm view on Meta::CPAN
package App::RecordStream::DomainLanguage::Valuation::KeySpec;
use strict;
use warnings;
use App::RecordStream::DomainLanguage::Valuation;
use base ('App::RecordStream::DomainLanguage::Valuation');
sub new
{
my $class = shift;
my $keyspec = shift;
my $this =
{
'KEYSPEC' => $keyspec,
};
bless $this, $class;
return $this;
}
sub evaluate_record
{
my $this = shift;
my $r = shift;
my $keyspec = $this->{'KEYSPEC'};
return ${$r->guess_key_from_spec($keyspec)};
}
1;
( run in 0.643 second using v1.01-cache-2.11-cpan-39bf76dae61 )