Skip to content

Instantly share code, notes, and snippets.

@JosephPecoraro
Created December 21, 2009 07:51
Show Gist options
  • Select an option

  • Save JosephPecoraro/260844 to your computer and use it in GitHub Desktop.

Select an option

Save JosephPecoraro/260844 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
puts
File.open(ARGV[0]).each do |line|
line = line.split
if line[0] == "IBOutlet"
puts "[#{line[2].tr('*;','')} release];"
elsif line[1] and line[1].include? "*"
puts "[#{line[1].tr('*;','')} release];"
end
end
puts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment