Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get absolute path from file Ruby #140

Open
namtx opened this issue Sep 13, 2021 · 0 comments
Open

Get absolute path from file Ruby #140

namtx opened this issue Sep 13, 2021 · 0 comments
Labels

Comments

@namtx
Copy link
Owner

namtx commented Sep 13, 2021

File.expand_path('example.rb')
=> "/Users/avogel/My/Working/Directory/example.rb"

File.expand_path('~/example.rb')
=> "/Users/avogel/example.rb"
@namtx namtx added the ruby label Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant