annotation Cruml::Annotation::AsInterface

Overview

Ensures that a class is considered as an interface. This is useful when an interface implements the methods signature.

Example:

@[Cruml::Annotation::AsInterface]
abstract class Animal
  abstract def walk : Nil
  abstract def eat : Nil
end

Defined in:

annotations.cr