Fichier Ruby Get Line Number
## Like in PHP
## To get line number
__LINE__
## To get file name
__FILE__
Tiago F2
## Like in PHP
## To get line number
__LINE__
## To get file name
__FILE__
File.readlines('foo').each do |line|
puts line
end