annotation Deprecated

Overview

This annotations marks methods, classes, constants, and macros as deprecated.

It receives an optional StringLiteral as single argument containing a deprecation notice.

@[Deprecated("Use `#bar` instead")]
def foo
end

Defined in:

annotations.cr