Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 550 Bytes

File metadata and controls

22 lines (16 loc) · 550 Bytes
lang ID
title Apples are Different From Oranges
answer \[\]
ok Great, that's an empty list
error

And numbers are different from strings.

While you can use methods on any object in Ruby, some methods only work on certain types of things. But you can always convert between different types using Ruby's "to" methods.

  • to_s converts things to __s__trings
  • to_i converts things to __i__ntegers (numbers)
  • to_a converts things to __a__rrays

What are arrays?!

They are lists. Type in a pair of brackets:

[]