title: Module vs methods outside module
body: <p>I would like to know what the difference is between using a module with methods inside it and using a simple file with many methods without creating a module, like the example below:</p>
  
  <pre><code>def doStuff
    puts 'test';
  end
  
  module Example
    def self.doStuff
      puts 'test';
    end
  end
  </code></pre>
  
  <p>I could require both files and use the methods inside one. I want to know why I should create a module instead of having just a bunch of methods inside a <code>.rb</code> file.</p>