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::Space

ABSTRACT

Represents a generator class

SYNOPSIS

  use Stencil::Space;

  my $space = Stencil::Space->new(name => 'test');

  # global: <Test>
  # local:  <Stencil::Source::Test>

  # $space->locate;

DESCRIPTION

This package provides namespace class which represents a Stencil generator class.

LIBRARIES

This package uses type constraints from:

Types::Standard

ATTRIBUTES

This package has the following attributes:

global

  global(Object)

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

local

  local(Object)

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

name

  name(Str)

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

repo

  repo(Object)

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

METHODS

This package implements the following methods:

locate

  locate() : Maybe[Object]

The locate method attempts to return one of the Data::Object::Space objects in the local and global attributes.

locate example #1
  # given: synopsis

  $space->locate;

source

  source() : InstanceOf["Stencil::Source"]

The source method locates, loads, and validates the Stencil::Source derived source code generator.

source example #1
  # given: synopsis

  $space->source;

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