Articles related to ruby operators
Using Boolean Operators in Ruby - About.com
Using these operators and alternative conditionals is often more clean than using the not operator. Though you will see it in Ruby code, especially when testing ...
The Ternary (or "Conditional") Operator - Ruby - About.com
To put this another way, the conditional operator is like an if statement. Remember that if statements in Ruby evaluate to the last value in block that gets executed ...
Overloading Operators - Ruby - About.com
What does a + b mean? That all depends on what 'a' is. Ruby allows you to define a number of arithmetic operators and they're called on the left-hand side of ...
What's New in Ruby 1.9.1? -The Lambda Operator - About.com
Among the new features in release of Ruby 1.9.1 is the Lambda operator, a shortcut used to make nameless methods. Learn how to use this feature introduced ...
The Case Equality Operator - Ruby - About.com
The case equality operator === (three equals signs) is not well defined. In fact, for many classes, it's not really defined at all and depending on the class does ...
The Curious Case of the Flip-Flop - Ruby - About.com
But first, a warning. The flip-flop operator is a hotly contested feature of Ruby. It's still struggling to find an idiomatic use case, except for a few very rarely needed ...
Boolean Expressions in Ruby Control Structures - About.com
In other words, Ruby will ask itself "if this boolean expression is true do this, ... Boolean expressions usually involve one or more comparison operators.
Regular Expressions: Grouping - Ruby - About.com
Some of the most powerful and useful operators in the Ruby regex syntax are the grouping operators. While quantifiers only work on the previous element, the ...
Multiple Splats in Ruby 1.9.1 - About.com
Among the new features in release of Ruby 1.9.1 is the ability to use more than one splat operator in an assignment or method call. Learn how to use this feature ...
The Case Statement in Ruby - About.com
In Ruby, it's a bit more flexible (and powerful). A simple equality test is not performed, the case equality operator is used, opening the door to many new uses.