Answers for "ruby filename from path"

2

ruby filename from path

path = "/path/to/file.ext"

File.basename(path) # 'file.ext'
Posted by: Guest on August-31-2020

Browse Popular Code Answers by Language