Sha256: f1b3549af1d66a6ece0aff99791bcdaa3000b6e6fe30f54231d0ebee8c41d12d
Contents?: true
Size: 243 Bytes
Versions: 3
Compression:
Stored size: 243 Bytes
Contents
module Kernel private # Similar to __FILE__ and __LINE__, __DIR__ provides # the directory path to the current executing script. # # CREDIT: Trans def __DIR__ (/^(.+)?:\d+/ =~ caller[0]) ? File.dirname($1) : nil end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-2.2.0 | lib/core/facets/kernel/dir.rb |
facets-2.2.1 | lib/core/facets/kernel/dir.rb |
facets-2.3.0 | lib/core/facets/kernel/dir.rb |