Ruby Tips

basename

Returns the last component of the filename given in file_name

File.basename('/home/gumby/work/ruby.rb')
=> 'ruby.rb'

Ruby Tips - a simple ruby tip generator RubyTips.dev

Refresh the page to generate a new tip. Or just click here

Built by @zayneabraham

RubyTips - A random Ruby tip generator | Product Hunt Embed