Skip to content

Category Archives: Ruby

Python is a general-purpose, high level programming language developed by Guido van Rossum in 1991. It was structured with an accentuation on code comprehensibility, and… Read More
The and keyword in Ruby takes two expressions and returns “true” if both are true, and “false” if one or more of them is false.… Read More
In Ruby, “or” keyword returns the logical disjunction of its two operands. The condition becomes true if both the operands are true. It returns “true”… Read More
The keyword “not” is different from the others. The “not” keyword gets an expression and inverts its boolean value – so given a true condition… Read More
Ruby provides a special keyword which is known as define? keyword. This keyword is used to check if the passed expression is defined or not.… Read More
In Computer Programming, Lambda functions are anonymous functions. Lambda functions in Ruby are no different. Since everything in Ruby is treated as an object, lambdas are… Read More
In Ruby, multiple assignments can be done in a single operation. Multiple assignments contain an expression that has more than one lvalue, more than one… Read More
Ruby provides a special keyword which is known as undef keyword. This keyword used to avoid the current working class from responding to calls to… Read More
Perl is a general-purpose, high level interpreted and dynamic programming language. It was developed by Larry Wall, in 1987. Perl was originally developed for text… Read More
Load reads and parses files every time the file (in which load is called) is executed. In most cases, we’ll use require, but there are… Read More
In Ruby, closure is a function or a block of code with variables that are bound to the environment that the closure is called. Or… Read More
A namespace is a container for multiple items which includes classes, constants, other modules, and more. It is ensured in a namespace that all the… Read More
The set is an unordered collection with no duplicate items. Like other languages, Ruby also provides a set class that represents the mathematical notion of… Read More
Ruby’s singleton methods are the methods that can be defined for a specific object only i.e. it works for a single object. These kinds of… Read More
Method invocation refers to how a method is called in a program. The process of invoking a method in Ruby is quite easy since the… Read More

Start Your Coding Journey Now!