class Crystal::FunDef
inherits Crystal::ASTNode
¶
Class methods¶
.new(name, args = [] of Arg, return_type = nil, varargs = false, body = nil, real_name = name)
¶
(name, args = [] of Arg, return_type = nil, varargs = false, body = nil, real_name = name)
Methods¶
#==(other : self)
¶
(other : self)
Returns true
if this reference is the same as other. Invokes same?
.
#doc : String?
¶
: String?
Returns the doc comment attached to this node. Not every node
supports having doc comments, so by default this returns nil
.
#hash(hasher)
¶
(hasher)