Project

General

Profile

Actions

Bug #13126

closed

__dir__ in eval returns nil

Added by metadeus (Artem Shein) over 7 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux]
[ruby-core:79067]

Description

$ ruby -e 'eval "p File.dirname(__FILE__); p __dir__"'
"."
nil
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0