Explain meaning

0 views
Skip to first unread message

Saturn

unread,
Oct 28, 2009, 9:30:59 AM10/28/09
to selenium-ruby
Can anyone explain me the meaning of following line: I understood that
it picks up last line of the logfile but don't know how it's working:
This is a ruby syntax:

File.open(logfile) { |f| f.extend(Enumerable).inject { |_,ln| ln } }
Reply all
Reply to author
Forward
0 new messages