From: James O'Brien Date: 2010-07-20T23:08:40+09:00 Subject: File.basename --002215b02e06bcd139048bd238dd Content-Type: text/plain; charset=ISO-8859-1 File.open('myfile') do |f| puts f.basename; end myfile exists on the filesystem but this code blows up with undefined method `basename' could someone explain why (given the docs http://ruby-doc.org/core/classes/File.html advertise the basename method) [ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]] Thanks! --002215b02e06bcd139048bd238dd--