SyntaxFix
Write A Post
Hire A Developer
Questions
I think it's local to the file you declared offset. Consider every file to be a method itself.
Maybe put the whole thing into a class and then make offset a class variable with @@offset = Point.new(100, 200);?
@@offset = Point.new(100, 200);