1 package Object::Inline;
4 use Package::Variant ();
10 Package::Variant->import::into(
12 no_import => 1, make_variant => sub { $_[2]->($_[1]) },
16 *{"${target}::object"} = sub (&;@) {
18 Package::Variant->build_variant_of($target, $code)->new(@_);