N
Neil Laurance
Hi there,
Was hoping someone could point me in the right direction. I'm currently
learning a little ruby, and going through some of the puzzles from the
Ruby Quiz book.
One of the examples uses a very strange looking construct:
As far as I understand this, *0 .. 3 equates to (0..3).to_a ? I've been
searching the online Ruby documentation, but couldn't find anwhere that
describes this syntax. Could anyone point me to a description for this?
Many thanks, toolkit
Was hoping someone could point me in the right direction. I'm currently
learning a little ruby, and going through some of the puzzles from the
Ruby Quiz book.
One of the examples uses a very strange looking construct:
Code:
a,b,c,d = *0 .. 3
searching the online Ruby documentation, but couldn't find anwhere that
describes this syntax. Could anyone point me to a description for this?
Many thanks, toolkit