-
-
Save enebo/4e327a1d041ac80b32536798a635c625 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
puts "BEFORE ARRAYLIST" | |
a = java.util.ArrayList.new # ArrayList implements Iterable | |
puts "AFTER ARRAYLIST" | |
puts "BEFORE PREP" | |
Enumerable.prepend(Module.new) | |
puts "AFTER PREP" | |
puts "BEFORE SQLEXCEPTION" | |
iterable = java.sql.SQLException.new | |
puts "AFTER SQLEXCEPTION" | |
p iterable.map(&:to_s) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment