You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
__dir__
Returns the canonicalized absolute path of the directory of the file from which this
method is called. It means symlinks in the path is resolved. If __FILE__ is nil, it
returns nil. The return value equals to File.dirname(File.realpath(__FILE__)).
The text was updated successfully, but these errors were encountered:
blah.rb
Environment
jruby 9.1.12.0 (2.3.3) 2017-06-15 33c6439 Java HotSpot(TM) 64-Bit Server VM 25.121-b13 on 1.8.0_121-b13 +jit [darwin-x86_64]
Darwin mac-mini.local 15.6.0 Darwin Kernel Version 15.6.0: Mon Jan 9 23:07:29 PST 2017; root:xnu-3248.60.11.2.1~1/RELEASE_X86_64 x86_64
Expected Behavior
Actual Behavior
Reference
http://ruby-doc.org/core-2.3.3/Kernel.html#method-i-__dir__
The text was updated successfully, but these errors were encountered: