Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making ruby1.9 compatible #4

Merged
merged 1 commit into from
Jan 31, 2013
Merged

Conversation

hugocorbucci
Copy link
Collaborator

Tried running:
require 'rubygems'
require './rfactor'
CODE=%Q{
def the_method(firstArg, secondArg)
puts :code
puts /to be/
puts 'refactored'
end

def more()
n = 3+2/7
puts "other #{n}"
n
end
}
code = Rfactor::Code.new(CODE)
code.extract_method(:name => "common", :start => 3, :end => 5)

on both IRB1.8 and IRB1.9 and had to fix a few more each_line.with_index.

Tried running:
require 'rubygems'
require './rfactor'
CODE=%Q{
  def the_method(firstArg, secondArg)
    puts :code
    puts /to be/
    puts 'refactored'
  end

  def more()
    n = 3+2/7
    puts "other \#{n}"
    n
  end
}
code = Rfactor::Code.new(CODE)
code.extract_method(:name => "common", :start => 3, :end => 5)

on both IRB1.8 and IRB1.9 and had to fix a few more each_line.with_index.
hugocorbucci pushed a commit that referenced this pull request Jan 31, 2013
Making ruby1.9 compatible
@hugocorbucci hugocorbucci merged commit 6ac5803 into fabiokung:master Jan 31, 2013
@fabiokung
Copy link
Owner

thanks for all the help @hugocorbucci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants