Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.