Syntax::ModuleDef
Inherits Syntax::ASTNode < Reference < Object
Module definition:
'module' name
body
'end'
Constructors
new(name : Syntax::Path, body = nil, type_vars : Nil | Array(String) = nil, splat_index : Int32 | Nil = nil)
SourceInstance methods
==(other : self)
Returns true if this reference is the same as other. Invokes same?.
accept_children(visitor)
Sourcebody
Sourcebody=(body : ASTNode)
Sourceclone_without_location
Sourcedoc
Returns the doc comment attached to this node. Not every node
supports having doc comments, so by default this returns nil.
hash(hasher)
See Object#hash(hasher)
name
Sourcename_location
Sourcename_location=(name_location : Location | Nil)
Sourcesplat_index
Sourcetype_vars
Sourcevisibility
Sourcevisibility=(visibility : Syntax::Visibility)
Source