A hash literal.
Similar to Hash#[]
Similar to Hash#[]=
Similar to Hash#clear
Returns a MacroId
with all of this hash elements joined by commas.
Similar to Hash#each
Similar to Hash#empty?
Similar to Hash#keys
Similar to Hash#map
Returns the type specified at the end of the Hash literal, if any.
Returns the type specified at the end of the Hash literal, if any.
Similar to Hash#size
Similar to Hash#to_a
Returns the type that receives the items of the array.
Similar to Hash#values
Crystal::Macros::ASTNode
Reference
Reference
Object
Object
Similar to Hash#clear
Returns a MacroId
with all of this hash elements joined by commas.
If trailing_string is given, it will be appended to the result unless this hash is empty. This lets you splat a hash and optionally write a trailing comma if needed.
Similar to Hash#empty?
Similar to Hash#keys
Similar to Hash#map
Similar to Hash#size
Similar to Hash#to_a
Returns the type that receives the items of the array.
This refers to the part before brackets in MyHash{'a' => 1, 'b' => 2}
Similar to Hash#values
© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/Crystal/Macros/HashLiteral.html