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

ABSTRACT

Perl 5 class source code generator

SYNOPSIS

use Stencil::Source::Class;

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

DESCRIPTION

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

# package name
name: MyApp

# package inheritence
inherits:
- MyApp::Parent

# 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

INHERITS

This package inherits behaviors from:

Stencil::Source

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