Type autocasting Number autocasting Symbol autocasting Type autocasting Crystal transparently casts elements of certain types when there is no ambiguity. Number autocasting ...
Type autocasting Number autocasting Symbol autocasting Type autocasting Crystal transparently casts elements of certain types when there is no ambiguity. Number autocasting ...
Variables Type Reassigning a Value Variables To store a value and re-use it later, it can be assigned to a variable. For example, if you want to say Hello Penny! three times...
Symbol Percent symbol array literal Symbol A Symbol represents a unique name inside the entire source code. Symbols are interpreted at compile time and cannot be created dyna...
Symbol Percent symbol array literal Symbol A Symbol represents a unique name inside the entire source code. Symbols are interpreted at compile time and cannot be created dyna...
new, initialize and allocate new, initialize and allocate You create an instance of a class by invoking new on that class: person = Person . new Here, person is an inst...
new, initialize and allocate new, initialize and allocate You create an instance of a class by invoking new on that class: person = Person . new Here, person is an inst...
new, initialize and allocate new, initialize and allocate You create an instance of a class by invoking new on that class: person = Person . new Here, person is an ins...
Hash Generic Type Argument Hash-like Type Literal Hash A Hash is a generic collection of key-value pairs mapping keys of type K to values of type V . Hashes are typically c...
new, initialize and allocate new, initialize and allocate You create an instance of a class by invoking new on that class: person = Person . new Here, person is an ins...