<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -42,7 +42,7 @@ class Functor
         cache_size, cache_base = functor_cache_config[:size], functor_cache_config[:base]
         c0_size, c1_size, c2_size, c3_size = cache_size * 4, cache_size * 3, cache_size * 2, cache_size
         c1_thresh,c2_thresh,c3_thresh = cache_base.to_i, (cache_base ** 2).to_i, (cache_base ** 3).to_i
-        old_method = instance_method(name) if instance_methods.include?( name ) # grab The Method's current incarnation        
+        old_method = instance_method(name) if method_defined?( name ) # grab The Method's current incarnation        
         define_method( name, action ) # redefine The Method
         newest = instance_method(name) # grab newly redefined The Method
         </diff>
      <filename>lib/functor.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>adeef7b14b542beeeef81b197edcd619e22d41c0</id>
    </parent>
  </parents>
  <author>
    <name>Matthew King</name>
    <email>automatthew@gmail.com</email>
  </author>
  <url>http://github.com/dyoder/functor/commit/05ed16d94d0f01d75c9c2b10914737054eff7f94</url>
  <id>05ed16d94d0f01d75c9c2b10914737054eff7f94</id>
  <committed-date>2009-02-06T14:53:51-08:00</committed-date>
  <authored-date>2009-02-06T14:53:51-08:00</authored-date>
  <message>smarter check for existing method</message>
  <tree>377635a79dd77858cef36fb5dd5fa7200be53ad7</tree>
  <committer>
    <name>Matthew King</name>
    <email>automatthew@gmail.com</email>
  </committer>
</commit>
