Skip to content

Instantly share code, notes, and snippets.

@marciojrtorres
Created August 5, 2013 20:26
Show Gist options
  • Save marciojrtorres/6159302 to your computer and use it in GitHub Desktop.
Save marciojrtorres/6159302 to your computer and use it in GitHub Desktop.
Na linguagem Ruby os arrays são objetos e contam a si mesmos
elementos = ["a", "b", "c"]
print elementos.length # imprime 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment