DEV Community

Paulina Delmore
Paulina Delmore

Posted on

1

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)

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay