<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -21,7 +21,7 @@ module Rfactor
     def extract_method(args)
       raise &quot;:name is required&quot; unless args.has_key?(:name)
       
-      ast = RubyParser.new.parse(code)
+      ast = RubyParser.new.parse(@code)
       line_finder = LineFinder.new(ast)
       
       method_lines = line_finder.method_lines(args[:start])
@@ -32,7 +32,7 @@ module Rfactor
       added = false
       identation = 0
       
-      code.each_with_index do |line, n|
+      @code.each_with_index do |line, n|
         line_number = n + 1 # not 0-based
         if line_number == method_lines.first
           identation = extract_identation_level_from line</diff>
      <filename>lib/rfactor/code.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2fed7d0a35bf2c861c1796dc3484c937c46e5e91</id>
    </parent>
  </parents>
  <author>
    <name>Fabio Kung</name>
    <email>fabio.kung@gmail.com</email>
  </author>
  <url>http://github.com/fabiokung/rfactor/commit/9ff11fca1fa0ce26894015969fe6b8c439ade59d</url>
  <id>9ff11fca1fa0ce26894015969fe6b8c439ade59d</id>
  <committed-date>2009-02-05T18:53:25-08:00</committed-date>
  <authored-date>2009-02-05T18:53:25-08:00</authored-date>
  <message>ops, again...</message>
  <tree>6aadd525377db39c5142fec2170c8f7b22db4bfc</tree>
  <committer>
    <name>Fabio Kung</name>
    <email>fabio.kung@gmail.com</email>
  </committer>
</commit>
