Crystal::Macros::Primitive
Inherits Crystal::Macros::ASTNode
A fictitious node representing the body of a Def marked with
@[Primitive].
Instance methods
name
Returns the name of the primitive.
This is identical to the argument to the associated @[Primitive]
annotation.
module Foo
@[Primitive(:abc)]
def foo
end
end
{{ Foo.methods.first.body.name }} # => :abc