DEV Community

Paulina Delmore
Paulina Delmore

Posted on

TIL 2

Difference between .method vs .method! - "!" modifies the object so we can't reference the original object. The "safe method" creates a copy of the object and changes that copy.

.split takes a string and returns an array. Cool!

To access a two-dimensional array we need to use double square brackets => array[1][5]

Ruby seems so easy, yet so complicated at the same time.

Top comments (0)