Categories: None [Edit]

retroactive_module_inclusion

https://rubygems.org/gems/retroactive_module_inclusion
https://github.com/adrianomitre/retroactive_module_inclusion
This gem circumvents the "dynamic module include" (aka "double inclusion") problem, which is the fact that M.module_eval { include N } does not make the methods of module N available to modules and classes which had included module M beforehand, only to the ones that include it thereafter. This behaviour hurts the least surprise principle, specially because if K is a class, then K.class_eval { include M } *does* make all methods of M available to all classes which had previously inherited it.

Total

Ranking: 34,342 of 197,258
Downloads: 40,589

Daily

Ranking: 93,637 of 197,235
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
2,4079,627,604hoe

Owners

#GravatarHandle
1iconadrianomitre