title: Monkey patching the watir-classic method not working
body: <p>In watir-classic gem, we have a method called generate_ruby_code() under Element class. I would like to monkey patch it and modify few things.</p>
  
  <p>What I did is:</p>
  
  <h2>MyFile.rb</h2>
  
  <hr>
  
  <pre class="lang-rb prettyprint-override"><code>require 'watir-classic'
  module Watir
      class Element
          def generate_ruby_code(element, method_name, *args)
              puts "Print this"
          end
      end
  end
  </code></pre>
  
  <p>But instead of calling my monkey patched method, the original generate_ruby_code in the Element class is called everytime which I don't want to happen.</p>
  
  <p>Please help me to solve this issue.</p>