3 ms·
Not sure what version of Ruby 2 the author is using here, but sadly the latest release candidate defines the using method only in the main scope; it's not avail
by gkop 14y ago
Not sure what version of Ruby 2 the author is using here, but sadly the latest release candidate defines the using method only in the main scope; it's not available in a class definition, where he calls it in his example.