M
Mario Ruiz
is it possible to print the comparison given as parameter in a method?
something like this:
mi(4==3)
def mi(param)
I want to know here that the param was 4==3
end
I know that I could pass mi("4==3") and in the method use eval(param)
but that's not possible in my case, I need to give a real comparison.
something like this:
mi(4==3)
def mi(param)
I want to know here that the param was 4==3
end
I know that I could pass mi("4==3") and in the method use eval(param)
but that's not possible in my case, I need to give a real comparison.