Skip to content

class Crystal::Union
inherits Crystal::ASTNode

Class methods

.new(types)

View source

Methods

#==(other : self)

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

#accept_children(visitor)

View source

#clone_without_location

View source

#hash(hasher)

#inside_is_a=(inside_is_a)

View source

#inside_is_a? : Bool

View source

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

View source

#restriction_of?(other : Path, owner, strict = false)

View source

#types=(types : Array(ASTNode))

View source

#update(from = nil)

View source