1Mediumgeneralโฑ 45sWhat are Ruby modules used for?๐โผAOnly for namespacing constantsBNamespacing and mixing in shared behavior into classes via include/extend, since Ruby has single inheritance for classesCReplacing classes entirelyDDeclaring only class methods
2Mediumgeneralโฑ 45sWhat is the difference between `include` and `extend` in Ruby?๐โผAThey are the sameBinclude mixes module methods in as instance methods; extend mixes them in as methods on the object/class itself (like class/singleton methods)Cextend only works with core Ruby modulesDinclude cannot be used with custom modules