title: ruby include question
body: <pre><code>class Foo
    def initialize(a)
      puts "Hello #{a}"
    end
  end
  module Bar
    def initialize(b)
      puts "#{b} World"
    end
  end
  class Sample &lt; Foo
    include Bar
    def initialize(c)
      super
    end
  end
  Sample.new('qux') #=&gt; qux World
  </code></pre>
  
  <p>Why output is not 'Hello qux' ? <a href="http://phosphor-escence.blogspot.com/2009/10/ruby-initialize-puzzle-question-part.html#comments" rel="nofollow noreferrer">credit for code</a></p>