title: yield in to a block with call function
body: <pre><code>class SomeClass    
  
  def initialize
      yield
  end
  
  def test
      puts 'test'
  end 
  end
  </code></pre>
  
  <p>I want to execute the test function inside a block when I initialize a some SomeClass.
      SomeClass.new { test() }
  This gives me </p>
  
  <pre><code>NoMethodError: undefined method `test' for main:Object
  </code></pre>