...

/

Methods

Methods

Learn about the importance of methods.

Importance of methods

Programming is all about interacting with data. Consider Twitter, for example, which essentially takes 140 characters of text (which is data) from users and displays it to others.

We’ve already learned about the most important primitive (simple) types of data in Ruby: numbers, strings, true, false, and nil ...