Skip to content
Sections
>> Trisquel >> パッケージ >> aramo >> perl >> libclass-tiny-antlers-perl
aramo  ]
[ ソース: libclass-tiny-antlers-perl  ]

パッケージ: libclass-tiny-antlers-perl (0.024-2)

Moose-like sugar for Class::Tiny

Class::Tiny::Antlers provides Moose-like has, extends, with, before, after and around keywords for Class::Tiny. (The with keyword requires Role::Tiny; method modifiers require Class::Method::Modifiers.)

Class::Tiny doesn't support all Moose's attribute options; has should throw you an error if you try to do something it doesn't support (like triggers).

Class::Tiny::Antlers does however hack in support for is => 'ro' and Moo-style is => 'rwp', clearers and predicates.

From version 0.24, Class::Tiny::Antlers also adds support for `isa` and `coerce` using Type::Tiny. (I mean, this is a TOBYINK module, so what do you expect?!) Technically MooseX::Types, MouseX::Types, Specio, and Type::Nano should work, but these are less tested.

その他の libclass-tiny-antlers-perl 関連パッケージ

  • 依存
  • 推奨
  • 提案
  • dep: libclass-tiny-perl
    minimalist class construction module for Perl
  • dep: perl
    Larry Wall's Practical Extraction and Report Language

libclass-tiny-antlers-perl のダウンロード

すべての利用可能アーキテクチャ向けのダウンロード
アーキテクチャ パッケージサイズ インストールサイズ ファイル
all 9.4 kB30 kB [ファイル一覧]