Skip to content

Instantly share code, notes, and snippets.

View AccidentallyTheCable's full-sized avatar

AccidentallyTheCable

View GitHub Profile
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)