Skip to content

class Crystal::AssignWithRestriction
inherits Crystal::ASTNode

Fictitious node to represent an assignment with a type restriction, created to match the assignment of a method argument's default value.

Class methods

.new(assign : Assign, restriction : ASTNode)

View source

Methods

#==(other : self)

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

#assign=(assign)

View source

#clone_without_location

View source

#hash(hasher)

#restriction=(restriction)

View source