Skip to content

Instantly share code, notes, and snippets.

@enebo

enebo/ji7.rb Secret

Created December 1, 2021 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enebo/4e327a1d041ac80b32536798a635c625 to your computer and use it in GitHub Desktop.
Save enebo/4e327a1d041ac80b32536798a635c625 to your computer and use it in GitHub Desktop.
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