I have an instance variable @foo and I want to write some code so that I get string \'foo\'
@foo
\'foo\'
any hint?
class Object def get_name line_number = caller[0].split(':')[1].to_i line_exectued = File.readlines( __FILE__)[line_number-1] line_exectued.match(/(\S+).get_name/)[1] end end inconceivable = true p inconceivable.get_name