1 package DX::Role::Value;
3 use DX::ActionBuilder::Null;
6 has identity_path => (is => 'ro');
8 has action_builder => (
10 default => 'DX::ActionBuilder::Null',
11 handles => [ qw(can_set_value action_for_set_value) ],
14 sub value_path { shift->action_builder->target_path }
18 sub but_set_action_builder {
20 $self->but(action_builder => $ab);
23 sub but_set_identity_path {
24 my ($self, $path) = @_;
25 $self->but(identity_path => $path);
31 my ($self, $other) = @_;
33 YAML::Dump($self->to_data) eq YAML::Dump($other->to_data);