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

Original source location #15

Closed
wants to merge 2 commits into from
Closed

Conversation

mbj
Copy link
Collaborator

@mbj mbj commented Jul 2, 2013

Mutant needs the original source location to identify methods AST.

The acutal implementation redefines the method via define_method so the original source location is lost.

@@ -88,6 +88,10 @@ def define_memoize_method(method, freezer)
store_memory(method_name, frozen)
end
end

define_method("#{method_name}_original_source_location") do
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be private?

@mbj mbj closed this Jul 2, 2013
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.

None yet

2 participants