has code => (is => 'ro', required => 1);
-sub call { shift->code->(@_) }
+sub call {
+ my $self = shift;
+ $self->code->(@_)
+}
1;
$self->local_objects_by_id->{'class_call_handler'}
= Object::Remote::CodeContainer->new(
code => sub {
- my ($class, $method) = splice @_, 0, 2;
+ my ($class, $method) = (shift, shift);
use_module($class)->$method(@_);
}
);
use Object::Remote;
is exception {
- my $bridge = TestBridge->new::on('localhost');
+ my $bridge = TestBridge->new::on('-');
is $bridge->result, 23;
}, undef, 'no error during bridge access';
has object => (is => 'lazy');
-sub _build_object { TestClass->new::on('root@') }
+sub _build_object { TestClass->new::on('-') }
sub result { (shift)->object->result }