Skip to content

class Crystal::Global
inherits Crystal::ASTNode

A global variable.

Included modules

Crystal::ExpandableNode

Class methods

.new(name)

View source

Methods

#==(other : self)

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

#clone_without_location

View source

#hash(hasher)

#interpret(method : String, args : Array(ASTNode), named_args : Hash(String, ASTNode)?, block : Crystal::Block?, interpreter : Crystal::MacroInterpreter, name_loc : Location?)

View source

#name=(name : String)

View source

#name_size

View source

#to_macro_id : String

View source

#var : MetaTypeVar

#var=(var : MetaTypeVar)

View source

#var? : MetaTypeVar?