module Crystal::Annotatable
¶
Direct including types
Crystal::Def
Crystal::Macro
Crystal::MetaTypeVar
Crystal::Type
Methods¶
#add_annotation(annotation_type : AnnotationType, value : Annotation)
¶
(annotation_type : AnnotationType, value : Annotation)
Adds an annotation with the given type and value
#annotation(annotation_type) : Annotation?
¶
(annotation_type) : Annotation?
Returns the last defined annotation with the given type, if any, or nil
otherwise
#annotations(annotation_type) : Array(Annotation)?
¶
(annotation_type) : Array(Annotation)?
Returns all annotations with the given type, if any, or nil
otherwise
#annotations=(annotations : Hash(AnnotationType, Array(Annotation))?)
¶
(annotations : Hash(AnnotationType, Array(Annotation))?)
Annotations on this instance