programming.nbk: Home | Index | Next Page: Ruby: Passing Options to the widget | Previous Page: Ruby: Names


 Ruby: Operators

Operators and their precidence:

    ::                      Scope
    []                      Indexing
    **                      Exponentiation
    + - ! ~                 unary pos/neg,not,
    * / %                   mult, div, modulus
    + -                     addition, subtraction
    << >>                   logical shifts
    &                       bitwise and
    ! ^                     bitwise or, xor
    > >= < <=               comparison
    == === <=> != =~ !~     equality, inequality...
    &&                      boolean and
    ||                      boolean or
    .. ...                  range operators
    = (also += -=, ...)     assignment
    ?:                      ternary decision
    not                     boolean negation
    and, or                 boolean and, or

programming.nbk: Home | Index | Next Page: Ruby: Passing Options to the widget | Previous Page: Ruby: Names


Notebook exported on Monday, 7 July 2008, 18:56:06 PM Eastern Daylight Time