Created
December 24, 2014 13:09
-
-
Save avgerin0s/0a7a40e00834b5e656b8 to your computer and use it in GitHub Desktop.
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
self.send(:send, :eval, "`ls`").send(:split, "\n").map(&:downcase).each { |s| s.class.send(:define_method, s.to_sym, ->{puts "a"}) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment