Skip to content

Instantly share code, notes, and snippets.

@PragTob
Last active December 28, 2015 08:39
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 PragTob/7472643 to your computer and use it in GitHub Desktop.
Save PragTob/7472643 to your computer and use it in GitHub Desktop.
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