Quantcast
Channel: What do the different brackets in Ruby mean? - Stack Overflow
Viewing all articles
Browse latest Browse all 7

What do the different brackets in Ruby mean?

$
0
0

In Ruby, what's the difference between {} and []?

{} seems to be used for both code blocks and hashes.

Are [] only for arrays?

The documention isn't very clear.


Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles





Latest Images