Skip to content

Instantly share code, notes, and snippets.

@tobyclemson
Created August 19, 2008 16:50
Show Gist options
  • Save tobyclemson/6202 to your computer and use it in GitHub Desktop.
Save tobyclemson/6202 to your computer and use it in GitHub Desktop.
File.open(@input_file_path, 'r') do |input_file|
while raw_flow = input_file.gets
begin
flow = Flow.new(raw_flow)
rescue ArgumentError
@logger.error("Malformed flow.")
next
end
other_stuff
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment