| 1 | package UR::Value::PerlReference; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | require UR; | ||
| 7 | our $VERSION = "0.46"; # UR $VERSION; | ||
| 8 | |||
| 9 | UR::Object::Type->define( | ||
| 10 | class_name => 'UR::Value::PerlReference', | ||
| 11 | is => ['UR::Value'], | ||
| 12 | ); | ||
| 13 | |||
| 14 | |||
| 15 | my %underlying_data_types; | ||
| 16 | sub underlying_data_types { | ||
| 17 | my $class = shift; | ||
| 18 | |||
| 19 | my $class_name = ref($class) ? $class->class_name : $class; | ||
| 20 | |||
| 21 | unless (exists $underlying_data_types{$class_name}) { | ||
| 22 | my($base_type) = ($class_name =~ m/^UR::Value::(.*)/); | ||
| 23 | $underlying_data_types{$class_name} = [$base_type]; | ||
| 24 | } | ||
| 25 | return @{$underlying_data_types{$class_name}}; | ||
| 26 | } | ||
| 27 | |||
| 28 | |||
| 29 | 1; | ||
| 30 | #$Header$ |