module Crygen::Helpers::Annotation

Overview

This module provides helper methods for adding annotations to objects easily.

Direct including types

Defined in:

helpers/annotation.cr

Instance Method Summary

Instance Method Detail

def add_link(name : String) : self #

Add a @[Link] annotation on the method with the library name. Returns: an object class itself.


[View source]
def as_deprecated(message : String) : self #

Add a @[Deprecated] annotation on the method with a custom message. Returns: an object class itself.


[View source]
def as_deprecated : self #

Add a @[Deprecated] annotation on the method. Returns: an object class itself.


[View source]
def as_experimental(message : String) : self #

Add a @[Experimental] annotation on the method with a custom message. Returns: an object class itself.


[View source]
def as_experimental : self #

Add a @[Experimental] annotation on the method. Returns: an object class itself.


[View source]
def as_flags : self #

Add a @[Flags] annotation on the method. Returns: an object class itself.


[View source]