Преглед изворни кода

Initial skeleton of parsing text file

pull/385/head
Dave Machado пре 6 година
родитељ
комит
6e1da9a1a3
1 измењених фајлова са 9 додато и 0 уклоњено
  1. +9
    -0
      build/validate.rb

+ 9
- 0
build/validate.rb Прегледај датотеку

@@ -0,0 +1,9 @@
#!/usr/bin/env ruby
args = ARGV
filename = args[0]

File.foreach(filename).with_index do |line, line_num|
line_num += 1
puts "#{line_num}: #{line}"

end

Loading…
Откажи
Сачувај