Blog on Web Backend
A block is the same thing as a method, but it does not belong to an object. Blocks are called closures in other programming languages. There are some...
The initialize method is useful when we want to initialize some class variables at the time of object creation. The initialize method is part of the...
A regular expression is a sequence of characters that define a search pattern, mainly for use in pattern matching with strings. Ruby regular...
The word iterate means doing one thing multiple times and that is what iterators do. Sometimes iterators are termed as the custom loops. ...
In crystal lang, static members are known as class variables. These variables are shared among all instances of a class and are declared using the @@...
crystal is the ideal object-oriented language. In an object-oriented programming language, inheritance is one of the most important features....