NAME

Data::Object::Path

ABSTRACT

Data-Object Path Class

SYNOPSIS

  use Data::Object::Path;

  my $path = Data::Object::Path->new('/tmp/test.txt');

  $path->absolute;

DESCRIPTION

Data::Object::Path provides methods for manipulating file paths and encapsulates the behavior of Path::Tiny.

METHODS

This package implements the following methods.

buildproxy

  BUILDPROXY(Any @args) : CodeRef

The BUILDPROXY method handles resolving missing-methods via autoloaded. This method is never called directly.

BUILDPROXY example
  # given $path

  $path->BUILDPROXY(...);

  # ...

origin

  origin() : Str

The origin method returns the package name of the proxy used.

origin example
  # given $origin

  $path->origin();

  # Path::Tiny

source

  source() : Object

The source method returns the underlying proxy object used.

source example
  # given $source

  $path->source();

  # Path::Tiny (object)

string

  string() : Str

The string method returns the string representation of the object.

string example
  # given $path

  $path->string();

  # ...