module Zinbeijett
coding: utf-8
Public Instance Methods
robot()
click to toggle source
# File lib/zinbei.rb, line 11 def robot open(ARGV[0]) do |f| while str2 = f.gets str = str2.chomp! one = ARGV[1] two = /#{one}/o if two =~ str printf('%2d : %s',f.lineno,str) puts '' else end end puts '' print 'Did it read to the last of a page ? ... ' print f.eof? end end