I am working with a 3rd party library where I'm trying to access a class member variable but unfortunately there is also a method with the same name.
class Test
attr_writer :var
def var
"some other stuff that is not var"
end
end
test = Test.new()
# Returns result of function but I need variable contents
test.var
Unfortunately I cannot change this since it's 3rd party.