File: GlobContainer.pm

package info (click to toggle)
libobject-remote-perl 0.003004-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 408 kB
  • ctags: 221
  • sloc: perl: 2,365; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 303 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package Object::Remote::GlobContainer;
use Moo;
use FileHandle;

has _handle => (is => 'ro', required => 1, init_arg => 'handle');

sub AUTOLOAD {
  my ($self, @args) = @_;
  (my $method) = our $AUTOLOAD =~ m{::([^:]+)$};
  return if $method eq 'DESTROY';
  return $self->_handle->$method(@args);
}

1;