Create a gist now

Instantly share code, notes, and snippets.

Module inclusion not really dynamic in Ruby
module M ; end
module M2 ; end
class C
include M
end
M.send :include, M2
puts C.include? M2 # => false (I believe it should be true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment