Arquivo Ruby Obtenha o número da linha
## 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