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 : Crystal::Assign ¶ View source #assign=(assign) ¶ View source #clone_without_location ¶ View source #hash(hasher) ¶ See Object#hash(hasher) #restriction : Crystal::ASTNode ¶ View source #restriction=(restriction) ¶ View source