Guest User

Untitled

a guest
Apr 26th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. my_block = <<FILTER_BLOCK
  2. row << row[0].slice(/^.+\:\/\/([^\/]+)/, 1)
  3. row << file.slice(/([^-]+-[^-]+)/,1)
  4. FILTER_BLOCK
  5.  
  6. DirectoryFilters.send(dir_filter, path) do |file|
  7. res = FileFilters.send(file_filter, path, file, "\t") do |row|
  8. eval(my_block)
  9. end
  10. end
Add Comment
Please, Sign In to add comment