Answer the question
In order to leave comments, you need to log in
What are the ways to set the eval context?
class User
def method
var = "puts(@another_var)"
@another_var = 11
eval(var)
end
end
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question