Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

implementation methods to interface xcode script

I would like to ask if somebody has some user script to copy all implementation methods definitions to the clipboard that can be pasted to the header definitions.


1 Answers

Create a new new userscript with the input set as Entire Document and the output set as Place on Clipboard. Then past the code below in...

#!/usr/bin/env ruby

text = $stdin.read

for method in text.scan(/\s*([+-]\s*\([^\)]+\)[^\{]+)/)
    puts method[0].strip + ";"
end
like image 83
probablyCorey Avatar answered Jan 03 '26 11:01

probablyCorey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!