The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Stencil::Repo

ABSTRACT

Represents a Stencil workspace

SYNOPSIS

  use Stencil::Repo;

  my $repo = Stencil::Repo->new;

DESCRIPTION

This package provides a repo class which represents a Stencil workspace.

LIBRARIES

This package uses type constraints from:

Types::Standard

ATTRIBUTES

This package has the following attributes:

base

  base(Str)

This attribute is read-only, accepts (Str) values, and is optional.

path

  path(Object)

This attribute is read-only, accepts (Object) values, and is optional.

METHODS

This package implements the following methods:

store

  store(Str @parts) : InstanceOf["Path::Tiny"]

The store method returns a Path::Tiny object representing a file or directory in the stencil workspace.

store example #1
  # given: synopsis

  $repo->store;
store example #2
  # given: synopsis

  $repo->store('logs');

AUTHOR

Al Newkirk, awncorp@cpan.org

LICENSE

Copyright (C) 2011-2019, Al Newkirk, et al.

This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".

PROJECT

Wiki

Project

Initiatives

Milestones

Contributing

Issues