Sha256: f0629111d0a3b303e6b8b39a6be1a9fdb0ed8c4513c806770bfbcc2f2cf95a99
Contents?: true
Size: 264 Bytes
Versions: 2
Compression:
Stored size: 264 Bytes
Contents
class String def document @docs ||= NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true)[0] @docs.stringByAppendingPathComponent(self) end def exists? NSFileManager.defaultManager.fileExistsAtPath(self) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sugarcube-0.1.6 | lib/sugarcube/document.rb |
sugarcube-0.1.5 | lib/sugarcube/document.rb |