A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.w3resource.com/ruby/ruby-operators-precedence.php below:

Website Navigation


Ruby Operators Precedence - w3resource

Ruby Operators PrecedenceLast update on November 13 2023 12:49:19 (UTC/GMT +8 hours)

Here is the list of Ruby operators, by precedence (high to low) :

Operator(s) Operation  !, ~, + Boolean NOT, bitwise complement, unary plus ** Exponentiation - Unary minus (define with -@) *, /,  % Multiplication, division, modulo (remainder) +, - Addition (or concatenation), subtraction <<, >> Bitwise shift-left (or append), bitwise shift-right & Bitwise AND |, ^ Bitwise OR, bitwise XOR >, >=, <, <= Ordering <=>, ==, ===, !=, =~, !~ Equality, pattern matching, comparison && Boolean AND || Boolean OR .., ... Range creation and Boolean flip-flops  ?,  : Conditional modifier-rescue Exception-handling modifier =, +=, -=, etc. Assignment defined? Test variable definition and type not Boolean NOT (low precedence) or, and Boolean OR, Boolean AND modifier-if, modifier-unless, modifier-while, modifier-until Conditional and loop modifiers { } blocks blocks

Previous: Ruby Variables, Constants
Next: Ruby Arithmetic Operators




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4