title: How do i require and include a module in the initialize method
body: <p>Im trying to dynamically require and then include modules inside a initialize method.</p>
  
  <pre><code># file: object.rb
  
  class Object
  
    attr_accessor :array
  
    def initialize array
      @array = array
      @array.each do |f|
        require_relative "#{f}"
        include f.capitalize # the method name is the same as the filename
        puts @variable # property from included method
      end
    end
  end
  
  object = Object.new ['a','b','c']
  </code></pre>
  
  <p>with these module files</p>
  
  <pre><code># file: a.rb
  
  module A
    @variable = 'string A'
  end
  </code></pre>
  
  <p>and so on for b and c</p>
  
  <p>i keep getting an error :</p>
  
  <pre><code>`block in initialize': undefined method `include'
  </code></pre>
  
  <p>What am i doing wrong here and is there a better way to achieve what i'm trying to do? </p>