The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
package Bubblegum::Object::Role::Value;

use Bubblegum::Role 'with';
use Bubblegum::Syntax -types;

with 'Bubblegum::Object::Role::Defined';

our $VERSION = '0.11'; # VERSION

sub do {
    my $self = CORE::shift;
    my $code = type_cref CORE::shift;

    local $_ = $self;
    return $code->($self);
}

1;