metadeus (Artem Shein)
- Login: metadeus
- Registered on: 01/12/2017
- Last sign in: 01/15/2017
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
01/14/2017
-
08:35 PM Ruby Bug #13126: __dir__ in eval returns nil
- Nobuyoshi Nakada wrote:
> When the third argument is not given, `__FILE__` in `eval` is `"(eval)"`.
> ...
No, I mean that documentation is saying:
"The return value equals to `File.dirname(File.realpath(__FILE__))`." here: http://ruby...
01/13/2017
-
03:54 PM Ruby Bug #13126: __dir__ in eval returns nil
- Shyouhei Urabe wrote:
> Can you show us your expectation? Should what be the value for `__dir__` inside of an `eval`?
It should be the same as `File.dirname(__FILE__)` or at least `File.dirname(File.realpath(__FILE__))` (like your d...
01/12/2017
-
12:57 PM Ruby Bug #13126 (Closed): __dir__ in eval returns nil
- ~~~
$ ruby -e 'eval "p File.dirname(__FILE__); p __dir__"'
"."
nil
~~~