From: Wins Lin Date: 2013-05-11T04:15:48+09:00 Subject: What is module in Ruby? Is there any standard (any strict rules) to define module? What is a module in Ruby? For now I can't see any standard that could help me to define a module. They say that "a module == a directory". But that's not true. In Rails they define modules just as they want. Some are bound with a directory with the same name, others are just plain files. E.g. in ActiveRecord there is a line: >> autoload :SessionStore So session_store has to be: 1) a module 2) a directory with the same name (/session_store/*) But session_store is: 1) a class 2) and a simple file, no any directory. And there are many more similar examples. So where is the standard of module definition in Ruby? What are the rules? -- Posted via http://www.ruby-forum.com/.