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
Tag Archives: Ruby Keyword
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
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
Ruby Hook Methods are called in reaction to something you do. They are usually used to extend the working of methods at run time. These… Read More
Include is used to importing module code. Ruby will throw an error when we try to access the methods of import module with the class… Read More