Skip to content

Instantly share code, notes, and snippets.

@AccidentallyTheCable
Created October 8, 2019 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AccidentallyTheCable/bcaa2cbb12b19c822621d08f0a08ec9a to your computer and use it in GitHub Desktop.
Save AccidentallyTheCable/bcaa2cbb12b19c822621d08f0a08ec9a to your computer and use it in GitHub Desktop.
JSON: { ... , "version": "3.4.0", "target": "#{baseDir}/lib/" },
baseDir = "/some/Path"
fileBase = "myfile"
....
filePath = jsonData["target"]
filePath += "#{fileBase}"
filePath = instance_eval(filePath)
targetDir = ::File.dirname(filePath)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment