Created
October 23, 2013 16:29
-
-
Save kofno/7121913 to your computer and use it in GitHub Desktop.
Comparing Dir with empty splatted array with 1.9.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ruby 1.9.3 | |
% ruby -e 'p Dir[*[]]' | |
[] | |
# JRuby 1.7.6 | |
% java -classpath ~/Downloads/jruby-complete-1.7.6.jar org.jruby.Main -e 'p Dir[*[]]' | |
ArgumentError: wrong number of arguments (0 for 1) | |
(root) at -e:1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment