callback calling
[scpubgit/Object-Remote.git] / lib / Object / Remote / CodeContainer.pm
diff --git a/lib/Object/Remote/CodeContainer.pm b/lib/Object/Remote/CodeContainer.pm
new file mode 100644 (file)
index 0000000..948e63b
--- /dev/null
@@ -0,0 +1,9 @@
+package Object::Remote::CodeContainer;
+
+use Moo;
+
+has code => (is => 'ro', required => 1);
+
+sub call { shift->code->(@_) }
+
+1;