EXTENSION Ruby

Estimated reading time: 1 minute

Data Types

Data Types Data Types Data Types Data Types Data Types
T_NIL T_OBJECT T_CLASS T_MODULE T_FLOAT
T_STRING T_REGEXP T_ARRAY T_HASH T_STRCUT
T_BIGNUM T_FIXNUM T_COMPLEX T_RATIONAL T_FILE
T_FALSE T_DATA T_SYMBOL . .

keyword Types

keyword keyword keyword keyword keyword
ENCODING LINE FILE BEGIN END
and begin case class def
defined? do else elsif end
endsure false for if in
module next nil not or
redo rescue retry return self
super then true undef unless
untill when while yield alias

operators

| keyword | keyword | |—|—| |+|add| |-|subtract| |*|multiply| |**|power| |/|division| |%|modulus| |&| and| |^|xor| |»|right shift| |«|left shift| |==|equal| |!=|not equal| |===|case equality| |=~|pettern match| |!~|does not match| |<=>|comparison aka spaceship operator| |<|less-than| |<=|less-than or equal| |>|greater-than| |>=|greater-than or equal|

ruby