class

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)
Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

accept_children(visitor)
Source
body
Source
body=(body : ASTNode)
Source
clone_without_location
Source
doc

Returns the doc comment attached to this node. Not every node supports having doc comments, so by default this returns nil.

Source
doc=(doc : String | Nil)
Source
hash(hasher)

See Object#hash(hasher)

name
Source
name=(name : Path)
Source
name_location
Source
name_location=(name_location : Location | Nil)
Source
splat_index
Source
splat_index=(splat_index : Int32 | Nil)
Source
type_vars
Source
type_vars=(type_vars : Array(String) | Nil)
Source
visibility
Source
visibility=(visibility : Syntax::Visibility)
Source