module Mat
match search loads.
match search loads.
Public Instance Methods
search()
click to toggle source
# File lib/all_log.rb, line 14 def search one = ARGV[1] File.open(one) do |f| while (str2 = f.gets) str = str2.chomp! twice = ARGV[2] three_act = /#{twice}/o begin File.open('log/output.txt', 'a:utf-8', perm = 0o777) do |fi| if str.match(three_act) || {}[:match] fi.puts(str) printf('%2d : %s', f.lineno, str) puts '' end end rescue Timeout::Error exit! end end if f.eof? puts '' elsif !f.eof begin raise All rescue StandardError => e puts e.backtrace puts e.backtrace_locations end end end end