Skip to content

Instantly share code, notes, and snippets.

@eladmeidar
Created August 9, 2009 03:51
Show Gist options
  • Save eladmeidar/164613 to your computer and use it in GitHub Desktop.
Save eladmeidar/164613 to your computer and use it in GitHub Desktop.
+
+ def tmpdir
+ @@tmpdir ||= self.root ? File.expand_path(File.join(self.root, "tmp")) : "tmp"
+ end
+
+ def tmpdir=(path)
# type
+ @@tmpdr = path
+ end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment