title: Stack level too deep in Ruby
body: <pre><code>class MyClass
    def method_missing(name, *args)
      name = name.to_s
      10.times do
        number = rand(100)
      end
      puts "#{number} and #{name}"
    end  
  end
  </code></pre>
  
  <p>Hello, I am exercising ruby but in this nonrecursive function i am getting stack level too deep error when use this piece of code.</p>
  
  <pre><code>x = MyClass.New
  x.try
  </code></pre>