class Crystal::Macros::NamedTupleLiteral
inherits Crystal::Macros::ASTNode
¶
A named tuple literal.
Methods¶
#[](key : SymbolLiteral | StringLiteral | MacroId) : ASTNode
¶
(key : SymbolLiteral | StringLiteral | MacroId) : ASTNode
Similar to NamedTuple#[]
but returns NilLiteral
if key is undefined.
#[]=(key : SymbolLiteral | StringLiteral | MacroId, value : ASTNode) : ASTNode
¶
(key : SymbolLiteral | StringLiteral | MacroId, value : ASTNode) : ASTNode
Adds or replaces a key.
#double_splat(trailing_string : StringLiteral = nil) : MacroId
¶
(trailing_string : StringLiteral = nil) : MacroId
Similar to HashLiteral#double_splat