title: Cleanest/One-liner way to require all files in directory in Ruby?
body: <p>When creating gems, I often have a directory structure like this:</p>
  
  <pre><code>|--lib
      |-- helpers.rb
      `-- helpers
          |-- helper_a.rb
          `-- helper_b.rb
  </code></pre>
  
  <p>Inside the <code>helpers.rb</code>, I'm just <code>require</code>-ing the files in the <code>helpers</code> directory.  But I have to do things like this:</p>
  
  <pre><code>$:.push(File.dirname(__FILE__) + '/helpers')
  require 'helper_a'
  require 'helper_b'
  </code></pre>
  
  <p>Is there a way to make that one line so I never have to add to it?  I just came up with this real quick:</p>
  
  <pre><code>dir = File.join(File.dirname(__FILE__), "helpers")
  Dir.entries(dir)[2..-1].each { |file| require "#{dir}/#{file[0..-4]}" }
  </code></pre>
  
  <p>But it's two lines and ugly.  What slick tricks have you done to make this a one liner?</p>