1. Tech

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 ...
http://ruby.about.com/od/control/a/Boolean-Operators.htm
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  ...
http://ruby.about.com/od/oo/ss/Overloading-Operators.htm
The Ternary (or "Conditional") Operator - Ruby - About.com
usr/bin/env ruby print "Enter a number: " i = gets.to_i puts "Your number is " + (i > ... so it doesn't interfere with the string concatenation operators surrounding it.
http://ruby.about.com/od/beginningruby/a/The-Ternary-Or-Conditional-Operator.htm
Conditional Assignments - Ruby - About.com
Ruby provides a number of combined operation and assignment operators. For example, the += operator can be used as "a += 10" meaning "a = a + 10." They're  ...
http://ruby.about.com/od/beginningruby/fl/Conditional-Assignments.htm
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.
http://ruby.about.com/od/control/a/Boolean-Expressions.htm
The Curious Case of the Flip-Flop - Ruby - About.com
The flip-flop operator is a hotly contested feature of Ruby. It's still ... Note that the .. and … operators bind very loosely, so there's no need for parentheses. #!
http://ruby.about.com/od/convolutedconstructions/ss/The-Curious-Case-Of-The-Flip-Flop.htm
The Case Equality Operator - Ruby - About.com
Note that this is only valid for Ruby 1.9.x, Ruby 1.8.x does not define Proc#===. ... This is not quite the same as the three class' == operators, which often require ...
http://ruby.about.com/od/control/a/The-Case-Equality-Operator.htm
Regular Expressions: Grouping - Ruby - About.com
The grouping operators, including the parentheses operator, are some of the most powerful and frequently used operators in the Ruby regex syntax.
http://ruby.about.com/od/regularexpressions/a/regexgrouping.htm
The Double Bang Operator: !! in Ruby - About.com
The Double Bang Operator: !! in Ruby, is this a good way to convert an object to a ... operator, but two unary bang (boolean negation) operators strung together.
http://ruby.about.com/od/beginningruby/fl/The-Double-Bang-Operator.htm
Control Flow - Ruby - About.com
Control structures alter the execution path (the "flow") the Ruby interpreter takes. They include ... How to Use 'Ternary' (Conditional) Operators in Ruby.
http://ruby.about.com/od/flow/
1  |  2  |  3  |  4  |  5  |  6  |  7  |  8  |  9  |  10      Next

©2015 About.com. All rights reserved.