R
R. Pito Salas
Is there a clever meta programming way for me to do this:
def calling_method_1
reporting_method
end
def reporting_method_2
puts "Hey I was just called from #{magic}"
end
and when running reporting_method_2 this prints
Hey I was just called from calling_method_1
Thanks for any pointers!
-- Pito
def calling_method_1
reporting_method
end
def reporting_method_2
puts "Hey I was just called from #{magic}"
end
and when running reporting_method_2 this prints
Hey I was just called from calling_method_1
Thanks for any pointers!
-- Pito