method

|

Importance_1
v1_9_3_125 - Show latest stable - 0 notes - Class: Set
|(enum) public

Returns a new set built by merging the set and the elements of the given enumerable object.

Show source
Register or log in to add new notes.
May 19, 2010
0 thanks

Looking for "to the power of"?

If you’re trying to calculate 2 to the power of 2, the ^ method is not what you want. Try ** instead.

2^2  #=> 0
2^8  #=> 10
2**2 #=> 4
2**8 #=> 256