title: Ruby Cucumber - call a module's method in step definition
body: <p>In a step definition, when I tried to call a method defined in a module in another file, I got 'NoMethodError'.</p>
  
  <p><strong>custom_mod.rb</strong>:</p>
  
  <pre><code>module MyMod
      def my_method()
          puts "Called my_method"
      end
  end
  </code></pre>
  
  <p><strong>sd_component.rb:</strong></p>
  
  <pre><code>require 'custom_mod'
  When (/^I did something/) do
      MyMod.my_method()
  end
  </code></pre>
  
  <p>And when I run it I get this error:</p>
  
  <blockquote>
    <p>NoMethodError: undefined method `my_method' for MyMod:Module.</p>
  </blockquote>
  
  <p>Any ideas? Thanks so much!</p>