31. Constant Shuffle (idiosyncratic-ruby.com)
Today, another snippet from the category don't try at home, might have unforeseeable consequences! Constant assignmentยน is not permanent in Ruby, so it is perfectly valid to do this: module A end class B def initialize p 42 end end A, B = B, A # warning: already initialized constant A # warning: pre...