lib/facet/kernel/__DIR__.rb in facets-1.1.0 vs lib/facet/kernel/__DIR__.rb in facets-1.2.0

- old
+ new

@@ -1,11 +2 @@ - -module Kernel - - # Similar to __FILE__ and __LINE__, __DIR__ provides - # the directory path to the current executing script. - - def __DIR__ - (/^(.+)?:\d+/ =~ caller[0]) ? File.dirname($1) : nil - end - -end +require 'facets/core/kernel/__DIR__.rb' \ No newline at end of file