Skip to content

Instantly share code, notes, and snippets.

@raggi

raggi/dir.rb

Created Jul 12, 2013
Embed
What would you like to do?
# Bugs..
p __FILE__, __dir__, eval('__FILE__', binding, __FILE__, 0), eval('__dir__', binding, __FILE__, 0)
# "dir.rb"
# "/Users/raggi"
# "dir.rb"
# nil
@raggi

This comment has been minimized.

Copy link
Owner Author

@raggi raggi commented Jul 12, 2013

ruby 2.0.0

@raggi

This comment has been minimized.

Copy link
Owner Author

@raggi raggi commented Jul 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment