M
Mario Ruiz
I have something like:
Class MyClass
def doit
caller= How can I do it
puts 'I was called from: ' + caller.class
puts 'the value of the @variab is: ' + caller.variab.to_s()
end
end
Class MyCaller
attr_reader: :variab
attr_writer: :variab
def callit
@variab="example"
result=MyClass.doit
end
end
Is there any way to do it??
Thank you
Class MyClass
def doit
caller= How can I do it
puts 'I was called from: ' + caller.class
puts 'the value of the @variab is: ' + caller.variab.to_s()
end
end
Class MyCaller
attr_reader: :variab
attr_writer: :variab
def callit
@variab="example"
result=MyClass.doit
end
end
Is there any way to do it??
Thank you