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::Source::Role

ABSTRACT

Perl 5 role source code generator

SYNOPSIS

  use Stencil::Source::Role;

  my $source = Stencil::Source::Role->new;

DESCRIPTION

This package provides a Perl 5 role source code generator, using this specification.

  # package name
  name: MyApp

  # package roles
  integrates:
  - MyApp::Role::Doable

  # package attributes
  attributes:
  - is: ro
    name: name
    type: Str
    required: 1

  # generator operations
  operations:
  - from: class
    make: lib/MyApp.pm
  - from: class-test
    make: t/MyApp.t

  # package functions
  functions:
  - name: execute
    args: "(Str $key) : Any"
    desc: executes something which triggers something else

  # package methods
  methods:
  - name: execute
    args: "(Str $key) : Any"
    desc: executes something which triggers something else

  # package routines
  routines:
  - name: execute
    args: "(Str $key) : Any"
    desc: executes something which triggers something else

LIBRARIES

This package uses type constraints from:

Types::Standard

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