Path::Resource::Base - A resource base for a Path::Resource object


Path-Resource documentation  | view source Contained in the Path-Resource distribution.

Index


NAME

Top

Path::Resource::Base - A resource base for a Path::Resource object

DESCRIPTION

Top

No need to use this class directly, see Path::Resource for more information.

METHODS

Top

$base = Path::Resource::Base->new( dir => $dir, uri => $uri, [ loc => $loc ] )

Create a new Path::Resource::Base object with the given $dir, $uri, and (optional) $loc

$new_base = $base->clone

Return a new Path::Resource::Base object that is a clone of $base

$base->uri
$base->uri( $uri )

Return the original $uri, optionally changing it by passing in a new $uri

$uri is a URI object, but if you pass in a valid URI string it will Do The Right Thing(tm) and convert it

$base->loc
$base->loc( $loc )

Return the calculated $loc, optionally changing it by passing in a new $loc

$loc is a Path::Abstract object, but if you pass in a valid Path::Abstract string it will Do The Right Thing(tm) and convert it

$base->dir
$base->dir( $dir )

Return the original $dir, optionally changing it by passing in a new $dir

$dir is a Path::Class::Dir object, but if you pass in a valid Path::Class::Dir string it will Do The Right Thing(tm) and convert it


Path-Resource documentation  | view source Contained in the Path-Resource distribution.