I was poking through the Rails code today and stumbled upon this snippet:
new_date(*::Date._parse(string, false).values_at(:year, :mon, :mday))
What does the asterisk-double-colon (or splat-double-colon if you will) in *::Date
do?
Presumably it has something to do with the scope of a particularly-namespaced Date
class... but it's necessary enough for the author to include it rather than just use the standard Date
class.
::
. – Urethra