Skip to content

Instantly share code, notes, and snippets.

@tal
Created January 5, 2010 21:45
Show Gist options
  • Save tal/269764 to your computer and use it in GitHub Desktop.
Save tal/269764 to your computer and use it in GitHub Desktop.
File.open(file_path).inject([]) do |result,line|
unless start_reading
start_reading =~ /ClosureCompiler/i
next result
end
break result if line =~ /\/ClosureCompiler/i
logic
result
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment