Created
May 28, 2019 16:51
-
-
Save asaaki/b9aeafde0dc8e5f59245c03317b358ac to your computer and use it in GitHub Desktop.
ruby-sigils.rb
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
[*('A'..'Z'), *('a'..'z')].map do |c| | |
puts [c, eval("%#{c}(ls)")].inspect | |
rescue Exception | |
puts "#{c} not allowed" | |
end; 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment