class Crystal::ClassDef
inherits Crystal::ASTNode
¶
Class definition:
'class' name [ '<' superclass ]
body
'end'
Included modules
Crystal::HookExpansionsContainer
Class methods¶
.new(name, body = nil, superclass = nil, type_vars = nil, abstract __arg39 = false, struct __arg40 = false, splat_index = nil)
¶
(name, body = nil, superclass = nil, type_vars = nil, abstract __arg39 = false, struct __arg40 = false, splat_index = nil)
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)
#resolved_type? : ClassType?
¶
: ClassType?