4 ms·
As a random note for anyone who's wondering how this syntax came about, this is the Symbol#to_proc [1] method, which was actually a monkeypatch from Rails that
by steveklabnik 16y ago
As a random note for anyone who's wondering how this syntax came about, this is the Symbol#to_proc [1] method, which was actually a monkeypatch from Rails that ended up making its way back into Ruby proper.
1: http://ruby-doc.org/core-1.9/classes/Symbol.html#M000031 http://ruby-doc.org/core-1.9/classes/Symbol.html#M000031