Guest User

Untitled

a guest
Nov 4th, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.40 KB | None | 0 0
  1.             list_files path do |file|
  2.                 File.open(file) do |source|
  3.                     source.rewind
  4.                     r = Regexp.new(Regexp.union(@@license_identifiers), Regexp::IGNORECASE)
  5.  
  6.                     extract = source.readlines.slice(block_start, block_size)
  7.                     if extract.grep(r)
  8.                         #puts "Ok"
  9.                     end
  10.         end
  11.         end
Advertisement
Add Comment
Please, Sign In to add comment