foo = "bar" func = function <> { "foo" } assert_equal("bar", (func)) foo = "xyz" assert_equal("xyz", (func))