NAME

Stencil::Source::Awncorp::Role

ABSTRACT

Stencil Generator for Roles

SYNOPSIS

  use Stencil::Source::Awncorp::Role;

  my $s = Stencil::Source::Awncorp::Role->new;

DESCRIPTION

This package provides a Stencil generator for Data::Object::Role based roles and Test::Auto tests. This generator produces the following specification:

  name: MyApp
  desc: Doing One Thing Very Well

  libraries:
  - MyApp::Types

  integrates:
  - MyApp::Role::Doable

  attributes:
  - is: ro
    name: name
    type: Str
    form: req

  operations:
  - from: role
    make: lib/MyApp.pm
  - from: role-test
    make: t/MyApp.t

  scenarios:
  - name: exports
    desc: exporting the following functions

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

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

  routines:
  - name: handle_c
    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